From e3febccd20d6d3bc91a6b4507edf7b0fcf1cf6c5 Mon Sep 17 00:00:00 2001 From: nolim1t Date: Wed, 24 Jun 2020 13:27:55 +0700 Subject: [PATCH] Update CORS --- nginx/conf.d/default.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nginx/conf.d/default.conf b/nginx/conf.d/default.conf index 6460c58..36ae4c9 100644 --- a/nginx/conf.d/default.conf +++ b/nginx/conf.d/default.conf @@ -5,15 +5,18 @@ server { location /api/ { add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS, PUT, DELETE'; + add_header Access-Control-Allow-Origin *; proxy_pass http://10.11.2.2:3005/; } location /manager-api/ { add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS, PUT, DELETE'; + add_header Access-Control-Allow-Origin *; proxy_pass http://10.11.2.1:3006/; } location / { + add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS, PUT, DELETE'; add_header Access-Control-Allow-Origin *; proxy_pass http://10.11.0.3:3004/; }