diff --git a/nginxconf/flashy.cards b/nginxconf/flashy.cards index 7ed6957..4152476 100644 --- a/nginxconf/flashy.cards +++ b/nginxconf/flashy.cards @@ -4,6 +4,7 @@ upstream backend_production { } server { + server_name flashy.cards; listen 443 ssl; location / { @@ -21,6 +22,7 @@ server { } location ~ /(api|admin|api-auth)/ { + add_header 'Access-Control-Allow-Origin' 'http://localhost/'; proxy_pass http://backend_production; proxy_redirect http://backend_production $scheme://flashy.cards; proxy_set_header Host $host;