Created
October 20, 2020 13:18
-
-
Save berkslv/6ee1bb05732c4eae6202dc177dbd40ab to your computer and use it in GitHub Desktop.
Startup.cs ConfigureServices for CORS
This file contains hidden or 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
services.AddCors(options => | |
{ | |
options.AddPolicy("ClientPermission", policy => | |
{ | |
policy.AllowAnyHeader() | |
.AllowAnyMethod() | |
.WithOrigins("http://localhost:3000") | |
.AllowCredentials(); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment