I have a angular 5 application which calls a .NET Core 2.0 backend api. Call to the API from the angular service works fine in all browsers (Chrome, Firefox, IE11) but not in EDGE. In EDGE, i am getting the error
Http failure response for (unknown url): 0 Unknown Error.
It is a CROSS ORIGIN CALL and Cors has been enabled in the API as below. Right now i am enabling for any origin
services.AddCors(options =>
{
options.AddPolicy("AllowAllOrigins",
builder =>
{
builder.AllowAnyOrigin().AllowAnyHeader().AllowAnyMethod();
});
});
And in Configure method
app.UseCors("AllowAllOrigins");
It works for all browsers except Edge. Appreciate your help.