Skip to content

Instantly share code, notes, and snippets.

@stphn
Created November 11, 2019 07:26
Show Gist options
  • Save stphn/c17e4be324bfae21aa0f3b25d6613d69 to your computer and use it in GitHub Desktop.
Save stphn/c17e4be324bfae21aa0f3b25d6613d69 to your computer and use it in GitHub Desktop.
nginx
X-Frame-Options: DENY
Cache-Control: max-age=31557600
add_header 'Access-Control-Allow-Origin' '*' always;
add_header 'Access-Control-Allow-Methods' 'GET, POST, PATCH, OPTIONS' always;
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range' always;
add_header 'Access-Control-Max-Age' 31536000 always;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment