Browse Source

Update CORS

patch-1
nolim1t 5 years ago
parent
commit
e3febccd20
No known key found for this signature in database GPG Key ID: F6287B82CC84BCBD
  1. 3
      nginx/conf.d/default.conf

3
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/;
}

Loading…
Cancel
Save