@manhng

Welcome to my blog!

ASP.NET Web API Swagger CORS

January 6, 2022 08:40

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 (google.com)

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 (wmpratt.com)

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

What is Swagger, Swashbuckle and Swashbuckle UI - Stack Overflow

Discover .NET - Swashbuckle.WebApi (discoverdot.net)

 

asp.net webapi publish - xml files not copy - Stack Overflow (HAY HAY HAY)

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

SharpConfig

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

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

DbUp

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

Categories

Recent posts