Skip to content

Instantly share code, notes, and snippets.

@h2non
Last active November 28, 2017 02:40
Show Gist options
  • Save h2non/1f718f8f4ef95daa441a to your computer and use it in GitHub Desktop.
Save h2non/1f718f8f4ef95daa441a to your computer and use it in GitHub Desktop.
Nginx CORS config
add_header Access-Control-Allow-Origin *;
add_header Access-Control-Allow-Headers *;
add_header Access-Control-Allow-Methods GET, POST, OPTIONS;
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