Commit 10be3ef549e3712ac4625dad440967e6ad955d17
1 parent
08f8e748f3
Exists in
master
Added CORS origin for localhost
Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff
nginxconf/flashy.cards
View file @
10be3ef
... | ... | @@ -4,6 +4,7 @@ |
4 | 4 | } |
5 | 5 | |
6 | 6 | server { |
7 | + | |
7 | 8 | server_name flashy.cards; |
8 | 9 | listen 443 ssl; |
9 | 10 | location / { |
... | ... | @@ -21,6 +22,7 @@ |
21 | 22 | } |
22 | 23 | |
23 | 24 | location ~ /(api|admin|api-auth)/ { |
25 | + add_header 'Access-Control-Allow-Origin' 'http://localhost/'; | |
24 | 26 | proxy_pass http://backend_production; |
25 | 27 | proxy_redirect http://backend_production $scheme://flashy.cards; |
26 | 28 | proxy_set_header Host $host; |