Sfoglia il codice sorgente

跨域配置处理

ccf 3 anni fa
parent
commit
50615e4775
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      config/nginx/template/proxy.nginx.conf

+ 2 - 1
config/nginx/template/proxy.nginx.conf

@@ -478,8 +478,9 @@ server {
 
         #=========================CORS nginx配置=============================
         if ($http_origin ~* (https?://([^\.]+\.)*proginn\.com(:[0-9]+)?)$) {
-           set $cors "true";
+           #set $cors "true";
         }
+         set $cors "true";
 
         if ($request_method = 'OPTIONS') {
             set $cors "${cors}options";