Created
October 1, 2017 08:23
-
-
Save balintsera/15c08648cc1af4116b2b0886610c36af to your computer and use it in GitHub Desktop.
Send config as cookie with nginx to single page javascript apps
This file contains hidden or 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 / { | |
root /usr/share/nginx/html; | |
index index.html index.htm; | |
add_header "Set-Cookie" 'config={"baseUrl":"http://localhost:8081"}'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment