|
@@ -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;
|