Skip to content

Instantly share code, notes, and snippets.

@D4R4
Created February 20, 2019 18:05
Show Gist options
  • Save D4R4/9490758e5b1505c3ad5654e340ca6249 to your computer and use it in GitHub Desktop.
Save D4R4/9490758e5b1505c3ad5654e340ca6249 to your computer and use it in GitHub Desktop.
allow cross origin requests from parent website and what not
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment