Explorar el Código

更新 'share-v2/sharesrv2-nginx/conf.d/sharesrv2-nginx.conf'

gaoyang hace 4 años
padre
commit
93c56e9c9c
Se han modificado 1 ficheros con 7 adiciones y 3 borrados
  1. 7 3
      share-v2/sharesrv2-nginx/conf.d/sharesrv2-nginx.conf

+ 7 - 3
share-v2/sharesrv2-nginx/conf.d/sharesrv2-nginx.conf

@@ -10,9 +10,13 @@ server {
     ssl_prefer_server_ciphers on;
     ssl_session_timeout 5m;
 
-    add_header 'Access-Control-Allow-Origin' '*';
-    add_header 'Access-Control-Allow-Credentials' 'true' ;
-    add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
+    #add_header 'Access-Control-Allow-Origin' '*';
+    #add_header 'Access-Control-Allow-Credentials' 'true' ;
+    #add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
+    
+    add_header Access-Control-Allow-Origin *;
+    add_header Access-Control-Allow-Headers X-Requested-With;
+    add_header Access-Control-Allow-Methods GET,POST,OPTIONS;
     
     charset utf-8;