Last active
July 31, 2021 02:23
-
-
Save brianmed/5f4bc6882191f15b533901adbc540fa8 to your computer and use it in GitHub Desktop.
Some Core stuff
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( | |
"default", | |
policy => | |
{ | |
// I'm guessing | |
policy.WithOrigins("http://10.0.0.5:5000") | |
.AllowAnyHeader() | |
.AllowCredentials() | |
.WithMethods("POST"); | |
policy.WithOrigins("http://10.0.0.1:8080") | |
.AllowAnyHeader() | |
.AllowCredentials() | |
.AllowAnyMethod(); | |
}); | |
}); | |
app.UseCors("default") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment