79355262

Date: 2025-01-14 14:06:30
Score: 0.5
Natty:
Report link

Use bottom code [reference]:

app.UseStaticFiles(new StaticFileOptions()
{
    OnPrepareResponse = context =>
    {
        context.Context.Response.Headers.Add("Access-Control-Allow-Origin", "*");

        context.Context.Response.Headers.Add("Access-Control-Allow-Methods", "POST, GET, DELETE, PUT, PATCH, OPTIONS");
    }

});
Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
Posted by: Ali Rasouli