I\'ve already enabled CORS on the project in C# .net Core
In startup.cs
I\'ve added lines
...
services.AddCors();
...
app.UseCors(builder =
I also faced same issue, and I found solution here:
Setup Any Origin And Any Credentials
Change your CORS setup in startup.cs file like this
public void ConfigureServices(IServiceCollection services)
{
// ...
services.AddCors(options =>
{
options.AddDefaultPolicy(builder =>
builder.SetIsOriginAllowed(_ => true)
.AllowAnyMethod()
.AllowAnyHeader()
.AllowCredentials());
});
}
It works for me.