Browse Source

跨域配置处理

ccf 3 years ago
parent
commit
50615e4775
1 changed files with 2 additions and 1 deletions
  1. 2 1
      config/nginx/template/proxy.nginx.conf

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

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