Created
June 7, 2022 20:34
-
-
Save hardboiled/fea8edf7aa38c0b543c10a81acb4f420 to your computer and use it in GitHub Desktop.
base nginx cors config I copied somewhere for local dev
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_header 'Access-Control-Allow-Origin' 'http://localhost:3000' always; | |
add_header 'Access-Control-Allow-Credentials' 'true' always; | |
add_header 'Access-Control-Allow-Headers' 'Authorization,Accept,Origin,DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range' always; | |
add_header 'Access-Control-Allow-Methods' 'GET,POST,OPTIONS,PUT,DELETE,PATCH' always; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example use: