Skip to content

Instantly share code, notes, and snippets.

@dcarley
Created April 30, 2013 09:58
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dcarley/5487768 to your computer and use it in GitHub Desktop.
Save dcarley/5487768 to your computer and use it in GitHub Desktop.
Jenkins CORS
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