From c18f4551b5036e457e300a1e394b510ff0d3de9b Mon Sep 17 00:00:00 2001 From: Luke Childs Date: Sun, 16 Aug 2020 11:32:21 +0700 Subject: [PATCH] Remove CORS headers (#142) --- nginx/conf.d/default.conf | 4 ---- 1 file changed, 4 deletions(-) diff --git a/nginx/conf.d/default.conf b/nginx/conf.d/default.conf index aa24f99..f986cc2 100644 --- a/nginx/conf.d/default.conf +++ b/nginx/conf.d/default.conf @@ -4,17 +4,14 @@ server { server_name _; location /api/ { - add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS, PUT, DELETE'; proxy_pass http://10.11.2.2:3005/; } location /manager-api/ { - add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS, PUT, DELETE'; proxy_pass http://10.11.2.1:3006/; } location /logs { - add_header Access-Control-Allow-Origin *; proxy_pass http://10.11.3.0:9001/logs; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; @@ -22,7 +19,6 @@ server { } location / { - add_header Access-Control-Allow-Origin *; proxy_pass http://10.11.0.3:3004/; }