Created
September 2, 2011 23:29
-
-
Save Benzene/1190200 to your computer and use it in GitHub Desktop.
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
location /main.html { | |
add_header Access-Control-Allow-Origin *; | |
add_header Access-Control-Allow-Methods 'POST, OPTIONS'; | |
add_header Content-Type 'text/plain; charset=UTF-8'; | |
add_header Access-Control-Allow-Headers 'Content-Type, Content-Length, Connection'; | |
if ($request_method = 'OPTIONS') { | |
return 200; | |
} | |
proxy_pass http://backendserver; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment