forked from github/plane
Update nginx.conf
This commit is contained in:
parent
abd02131d5
commit
4278383282
@ -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-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-Methods OPTIONS,POST,GET,PUT;
|
||||||
proxy_set_header Access-Control-Allow-Credentials true;
|
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 *;
|
proxy_set_header X-Requested-With *;
|
||||||
}
|
}
|
||||||
location /api/ {
|
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-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-Methods OPTIONS,POST,GET,PUT;
|
||||||
proxy_set_header Access-Control-Allow-Credentials true;
|
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 *;
|
proxy_set_header X-Requested-With *;
|
||||||
}
|
}
|
||||||
error_page 500 502 503 504 /50x.html;
|
error_page 500 502 503 504 /50x.html;
|
||||||
|
Loading…
Reference in New Issue
Block a user