ASP.NET Web API Swagger CORS (edit)

  • .NET Framework 4.5
  • ASP.NET MVC 5.x + Web API 2.x
  • React JS
  • RESTful service
  • CORS
  • OpenAPI Specification
  • Swashbuckle Swagger (It is almost entirely written in C#, not JavaScript)
  • Authenticate/Authorize: ApiKey, Basic Auth and OAuth2
  • Out-of-the-box support for leveraging Xml comments

Web API implementation - Best practices for cloud applications | Microsoft Docs

ASP.NET Web Deployment using Visual Studio: Command Line Deployment | Microsoft Docs

Calling a Web API From C# and Calling a Web API From View - wcf pandu (

ASP.NET Web API Documentation using Swagger - Bit of Technology

CORS configure

  • SupportsCredentials = true (HAY HAY HAY)

[EnableCors(origins: "*", headers: "*", methods: "*", SupportsCredentials = true)]

Swagger configure

Swagger and ASP.NET Web API - Part I: Adding Swagger to Web API project (

Host ASP.NET Web API in IIS using Visual Studio Publish method :

What is Swagger, Swashbuckle and Swashbuckle UI - Stack Overflow

Discover .NET - Swashbuckle.WebApi ( webapi publish - xml files not copy - Stack Overflow (HAY HAY HAY)

  • Making sure to enable the XML documentation for both Debug and Release configurations


cemdervis/SharpConfig: An easy to use CFG/INI configuration library for .NET. (

ruarai/SharpConfig: Simple and easy user-persistent configuration library for .NET (


DbUp: Easy SQL Server change script runner

IIS PowerShell

msbuild C:\ContosoUniversity\ContosoUniversity.sln /p:DeployOnBuild=true /p:PublishProfile=Test

PowerShell and IIS: 20 practical examples - Octopus Deploy