Created
April 21, 2020 17:52
-
-
Save zsmatrix62/e2e4801c58f8392af9d769a8c198d3e1 to your computer and use it in GitHub Desktop.
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
location / { | |
if ($request_method = 'OPTIONS' ) { | |
add_header "Access-Control-Allow-Origin" *; | |
add_header "Access-Control-Allow-Methods" "GET, POST, OPTIONS, HEAD"; | |
add_header "Access-Control-Allow-Headers" "Authorization, Origin, X-Requested-With, Content-Type, Accept"; | |
return 200; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment