1👍
try to change the order in your pipeline
builder.Services.AddCors();
// ... other app build configurations ...
app.UseCors(p =>
{
p.AllowAnyOrigin()
.AllowAnyMethod()
.AllowAnyHeader();
});
app.UseRouting();
Source:stackexchange.com