Skip to content

Instantly share code, notes, and snippets.

@1901
Created November 15, 2018 05:50
Show Gist options
  • Save 1901/185beaf56c17db07620533696cabf449 to your computer and use it in GitHub Desktop.
Save 1901/185beaf56c17db07620533696cabf449 to your computer and use it in GitHub Desktop.
[Nginx 跨域配置] #nginx #linux
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' '*';
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