Skip to content

Instantly share code, notes, and snippets.

@wullemsb
Created November 30, 2018 12:22
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 wullemsb/9df6e5dbeeb37bbad98c09b3345c8228 to your computer and use it in GitHub Desktop.
Save wullemsb/9df6e5dbeeb37bbad98c09b3345c8228 to your computer and use it in GitHub Desktop.
services.AddCors(options =>
{
options.AddPolicy("AllowAllOrigins",
builder =>
{
builder
.AllowAnyOrigin()
.AllowAnyHeader()
.AllowAnyMethod()
.AllowCredentials();
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment