I\'ve already enabled CORS on the project in C# .net Core
In startup.cs I\'ve added lines
startup.cs
... services.AddCors(); ... app.UseCors(builder =
You cannot use both AllowAnyOrigin() and AllowCredentials() at the sametime so change your code to:
AllowAnyOrigin()
AllowCredentials()
... services.AddCors(); ... app.UseCors(builder => builder .WithOrigins("https://example.com") .AllowAnyMethod() .AllowAnyHeader() .AllowCredentials());