diff --git a/nginx/nginx.conf b/nginx/nginx.conf index eb7aedc4a..ee3e1188b 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -18,16 +18,14 @@ server { proxy_pass http://planefrontend:3000/; proxy_set_header Host $host; add_header Access-Control-Allow-Origin *; - add_header Access-Control-Allow-Credentials true - add_header Access-Control-Allow-Methods GET, POST, OPTIONS, PUT; - + add_header Access-Control-Allow-Credentials true; } + location /api/ { proxy_pass http://planebackend:8000/api/; proxy_set_header Host $host; add_header Access-Control-Allow-Origin *; - add_header Access-Control-Allow-Credentials true - add_header Access-Control-Allow-Methods GET, POST, OPTIONS, PUT; + add_header Access-Control-Allow-Credentials true; } error_page 500 502 503 504 /50x.html; location = /50x.html {