From 4278383282a87ffcc97555db5d328c664a844f13 Mon Sep 17 00:00:00 2001 From: Narayana Date: Wed, 8 Mar 2023 12:03:53 +0530 Subject: [PATCH] Update nginx.conf --- nginx/nginx.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 8545a5348..f1abe7b37 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -32,7 +32,7 @@ server { proxy_set_header Access-Control-Allow-Headers Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token; proxy_set_header Access-Control-Allow-Methods OPTIONS,POST,GET,PUT; proxy_set_header Access-Control-Allow-Credentials true; - proxy_set_header Access-Control-Allow-Origin *; + add_header Access-Control-Allow-Origin *; proxy_set_header X-Requested-With *; } location /api/ { @@ -42,7 +42,7 @@ server { proxy_set_header Access-Control-Allow-Headers Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token; proxy_set_header Access-Control-Allow-Methods OPTIONS,POST,GET,PUT; proxy_set_header Access-Control-Allow-Credentials true; - proxy_set_header Access-Control-Allow-Origin *; + add_header Access-Control-Allow-Origin *; proxy_set_header X-Requested-With *; } error_page 500 502 503 504 /50x.html;