Skip to content

Instantly share code, notes, and snippets.

@manoj-choudhari-git
Created May 15, 2020 19:49
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 manoj-choudhari-git/0e9df1ad88180633a422cd270acf714f to your computer and use it in GitHub Desktop.
Save manoj-choudhari-git/0e9df1ad88180633a422cd270acf714f to your computer and use it in GitHub Desktop.
CORS policy for APIs
app.UseCors(builder =>
{
builder.WithOrigins("https://localhost:44361")
.AllowCredentials()
.AllowAnyMethod()
.AllowAnyHeader();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment