Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@manoj-choudhari-git
Created May 5, 2020 20:42
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/1435187c9a245268c102a2afb9429813 to your computer and use it in GitHub Desktop.
Save manoj-choudhari-git/1435187c9a245268c102a2afb9429813 to your computer and use it in GitHub Desktop.
CORS configurations for API Startup for Angular App
app.UseCors(builder =>
{
builder.WithOrigins("http://localhost:4200")
.AllowCredentials()
.AllowAnyMethod()
.AllowAnyHeader();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment