Wednesday, April 15, 2020

Use (allow) specific http verbs in .NET Core 3.

In Configure in Startup.cs:

app.UseCors(builder => builder.AllowAnyOrigin().WithMethods("GET", "HEAD", "POST",
      "DEBUG", "PUT", "DELETE", "PATCH", "OPTIONS").AllowAnyHeader());

No comments:

Post a Comment