[Vuejs]-CORS error when accessing microservice API from frontend in production

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();

Leave a comment