CORE3.1 add CORS support
Setting up CORS To setup CORS for your application you use the Microsoft.AspNetCore.Cors package. In your project.json file, add the following: “dependencies”: { “Microsoft.AspNet.Cors”: “6.0.0-rc1-final”, }, Add the CORS services in Startup.cs: public void ConfigureServices(IServiceCollection services) { services.AddCors(); } Enabling CORS with middleware To enable CORS for your entire application add the CORS middleware to your request …
