Parth Mandaliya is a Web Developer and Author at TheCodeHubs. He has got his skills ...
* Go to Startup.cs file and add the below code in Configure method,
app.UseCors(options => options.AllowAnyOrigin()); * Add the below code in ConfigureServices method, services.AddCors(c => { c.AddPolicy(“AllowOrigin”, options => options.AllowAnyOrigin()); });
Auto Sync....
Select Categories
* Go to Startup.cs file and add the below code in Configure method,
app.UseCors(options => options.AllowAnyOrigin());
* Add the below code in ConfigureServices method,
services.AddCors(c =>
{
c.AddPolicy(“AllowOrigin”, options => options.AllowAnyOrigin());
});