|
|
@@ -116,9 +116,12 @@ server {
|
|
|
proxy_http_version 1.1;
|
|
|
|
|
|
#=========================CORS nginx配置=============================
|
|
|
- if ($http_origin ~* (https?://([^\.]+\.)*proginn\.com(:[0-9]+)?)$) {
|
|
|
- set $cors "true";
|
|
|
- }
|
|
|
+ #if ($http_origin ~* (https?://([^\.]+\.)*proginn\.com(:[0-9]+)?)$) {
|
|
|
+ # set $cors "true";
|
|
|
+ #}
|
|
|
+
|
|
|
+ set $cors "true";
|
|
|
+
|
|
|
if ($request_method = 'OPTIONS') {
|
|
|
set $cors "${cors}options";
|
|
|
}
|
|
|
@@ -508,4 +511,4 @@ server {
|
|
|
return 200;
|
|
|
}
|
|
|
}
|
|
|
-}
|
|
|
+}
|