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; | |
} |
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; | |
} |