Created
June 15, 2015 16:46
-
-
Save floodedcodeboy/55d45db318629f208f8f to your computer and use it in GitHub Desktop.
nginx cors setup
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
... | |
location / { | |
add_header Access-Control-Allow-Origin $http_origin; | |
add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE'; | |
add_header 'Access-Control-Allow-Headers' 'Authorization, Content-Type, origin, accept'; | |
add_header 'Access-Control-Allow-Credentials' 'true'; | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment