Commit c51c7d1ea3393972d332957f0fd6963b1e5750ed
1 parent
10be3ef549
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 @
c51c7d1
... | ... | @@ -23,6 +23,8 @@ |
23 | 23 | |
24 | 24 | location ~ /(api|admin|api-auth)/ { |
25 | 25 | add_header 'Access-Control-Allow-Origin' 'http://localhost/'; |
26 | + add_header 'Access-Control-Allow-Credentials' 'true'; | |
27 | + add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS, PATCH, PUT'; | |
26 | 28 | proxy_pass http://backend_production; |
27 | 29 | proxy_redirect http://backend_production $scheme://flashy.cards; |
28 | 30 | proxy_set_header Host $host; |