diff --git a/nginxconf/flashy.cards b/nginxconf/flashy.cards index 4152476..173e4f4 100644 --- a/nginxconf/flashy.cards +++ b/nginxconf/flashy.cards @@ -23,6 +23,8 @@ server { location ~ /(api|admin|api-auth)/ { add_header 'Access-Control-Allow-Origin' 'http://localhost/'; + add_header 'Access-Control-Allow-Credentials' 'true'; + add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS, PATCH, PUT'; proxy_pass http://backend_production; proxy_redirect http://backend_production $scheme://flashy.cards; proxy_set_header Host $host;