Skip to content

Commit a72b0f7

Browse files
committed
delete header frmo proxy
1 parent c583b64 commit a72b0f7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/generateNginxConfig.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ server {
1818
add_header 'Access-Control-Allow-Origin' '*' always;
1919
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS, PUT, DELETE' always;
2020
add_header 'Access-Control-Allow-Headers' 'Origin, X-Requested-With, Content-Type, Accept, Authorization' always;
21-
21+
proxy_hide_header Access-Control-Allow-Origin;
22+
proxy_hide_header Access-Control-Allow-Methods;
23+
proxy_hide_header Access-Control-Allow-Headers;
2224
if ($request_method = OPTIONS) {
2325
return 204;
2426
}

0 commit comments

Comments
 (0)