Update nginx.conf

This commit is contained in:
Narayana 2023-03-08 12:03:53 +05:30
parent abd02131d5
commit 4278383282

View File

@ -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;