Access to XMLHttpRequest has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Budget: €8 – €30 EUR
Hi, I have API made in .NET core and Angular APP.
I set
app.UseCors(builder => builder
.AllowAnyHeader()
.AllowAnyMethod()
.SetIsOriginAllowed((host) => true)
.AllowCredentials()
.AllowAnyOrigin()
);
before app.UseMvc();
but still has error linke in project title.
I set
app.UseCors(builder => builder
.AllowAnyHeader()
.AllowAnyMethod()
.SetIsOriginAllowed((host) => true)
.AllowCredentials()
.AllowAnyOrigin()
);
before app.UseMvc();
but still has error linke in project title.