Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created November 29, 2022 14:34
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/319788134c68f31bfb0767bf085c7ccc to your computer and use it in GitHub Desktop.
Save bjoerntx/319788134c68f31bfb0767bf085c7ccc to your computer and use it in GitHub Desktop.
builder.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