Created
April 30, 2013 09:58
-
-
Save dcarley/5487768 to your computer and use it in GitHub Desktop.
Jenkins 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
location /api/json { | |
proxy_pass http://localhost:8080; | |
add_header "Access-Control-Allow-Origin" "*"; | |
add_header "Access-Control-Allow-Methods" "GET, POST, OPTIONS"; | |
add_header "Access-Control-Allow-Headers" "origin, authorization, cookie, 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