How to enable CORS in ASP.net Core WebAPI
Because you have a very simple CORS policy (Allow all requests from XXX domain), you don’t need to make it so complicated. Try doing the following first (A very basic implementation of CORS). If you haven’t already, install the CORS nuget package. Install-Package Microsoft.AspNetCore.Cors In the ConfigureServices method of your startup.cs, add the CORS services. … Read more