Created
June 29, 2020 22:27
-
-
Save PradeepLoganathan/3da2b70e7486cd92af297bff92aef240 to your computer and use it in GitHub Desktop.
using different CORS policies
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
| if (env.IsDevelopment()) | |
| { | |
| app.UseCors(CORSPolicies.DevAPI); | |
| } | |
| else | |
| { | |
| app.UseCors(CORSPolicies.PublicAPI); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment