feiver commited on
Commit
8f9b08e
·
verified ·
1 Parent(s): dd333cd

Update nginx.conf

Browse files
Files changed (1) hide show
  1. nginx.conf +7 -4
nginx.conf CHANGED
@@ -6,10 +6,13 @@ server {
6
  index index.html;
7
 
8
  # 安全相关的HTTP头
9
- add_header X-Content-Type-Options "nosniff";
10
- add_header X-Frame-Options "SAMEORIGIN";
11
- add_header X-XSS-Protection "1; mode=block";
12
- add_header Referrer-Policy "strict-origin-when-cross-origin";
 
 
 
13
 
14
  # 特殊处理config.js,防止缓存
15
  location = /config.js {
 
6
  index index.html;
7
 
8
  # 安全相关的HTTP头
9
+ proxy_hide_header Access-Control-Allow-Origin;
10
+ proxy_hide_header Access-Control-Allow-Headers;
11
+ proxy_hide_header Access-Control-Allow-Methods;
12
+ add_header 'Access-Control-Allow-Origin' '*';
13
+ add_header 'Access-Control-Allow-Headers' '*';
14
+ add_header 'Access-Control-Allow-Methods' '*';
15
+
16
 
17
  # 特殊处理config.js,防止缓存
18
  location = /config.js {