Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created November 9, 2021 17:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjoerntx/24a1ba2fc1fa0d98a7846d315f3de8cb to your computer and use it in GitHub Desktop.
Save bjoerntx/24a1ba2fc1fa0d98a7846d315f3de8cb to your computer and use it in GitHub Desktop.
services.AddCors(opt =>
{
opt.AddPolicy(name: "CorsPolicy", builder =>
{
builder.AllowAnyOrigin()
.AllowAnyHeader()
.AllowAnyMethod();
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment