Created
May 5, 2020 20:42
-
-
Save manoj-choudhari-git/1435187c9a245268c102a2afb9429813 to your computer and use it in GitHub Desktop.
CORS configurations for API Startup for Angular App
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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