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