rabin 8 months ago
parent
commit
82bfc39924
1 changed files with 3 additions and 2 deletions
  1. 3 2
      container/conf/web/nginx/conf.d/site.conf

+ 3 - 2
container/conf/web/nginx/conf.d/site.conf

@@ -14,7 +14,8 @@ server {
     gzip_vary on;
     gzip_disable "MSIE [1-6]\.";
 
-    add_header Access-Control-Allow-Origin *;
+    add_header Access-Control-Allow-Origin http://127.0.0.1:15000;
+    add_header Access-Control-Allow-Credentials true;
     add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS';
     add_header Access-Control-Allow-Headers 'DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization';
 
@@ -42,7 +43,7 @@ server {
     charset $charset;
 
     set $rootdir /www;
-    if ( $request_uri ~* ^/(dever_package\/manage|dever_package\/ui|dever_package\/script) ) {
+    if ( $request_uri ~* ^/(dever_package\/manage|dever_package\/ui|dever_package\/script|dever2\/package) ) {
         set $rootdir /share/lib/php;
     }
     root $rootdir;