|
|
@@ -40,7 +40,7 @@ server {
|
|
|
proxy_http_version 1.1;
|
|
|
|
|
|
#=========================CORS nginx配置=============================
|
|
|
- if ($http_origin ~* (https?://([0-9a-z\-_]+\.)\.test\.proginn\.com(:[0-9]+)?)$) {
|
|
|
+ if ($http_origin ~* (https?://([0-9a-z\-_]+)\.(test|test-rooter|test-jishuin|test-festival)\.proginn\.com(:[0-9]+)?)$) {
|
|
|
set $cors "true";
|
|
|
}
|
|
|
if ($request_method = 'OPTIONS') {
|
|
|
@@ -116,7 +116,7 @@ server {
|
|
|
proxy_http_version 1.1;
|
|
|
|
|
|
#=========================CORS nginx配置=============================
|
|
|
- if ($http_origin ~* (https?://([0-9a-z\-_]+\.)\.test\-rooter\.proginn\.com(:[0-9]+)?)$) {
|
|
|
+ if ($http_origin ~* (https?://([0-9a-z\-_]+)\.(test|test-rooter|test-jishuin|test-festival)\.proginn\.com(:[0-9]+)?)$) {
|
|
|
set $cors "true";
|
|
|
}
|
|
|
if ($request_method = 'OPTIONS') {
|
|
|
@@ -188,7 +188,7 @@ server {
|
|
|
proxy_http_version 1.1;
|
|
|
|
|
|
#=========================CORS nginx配置=============================
|
|
|
- if ($http_origin ~* (https?://([0-9a-z\-_]+\.)\.test\-jishuin\.proginn\.com(:[0-9]+)?)$) {
|
|
|
+ if ($http_origin ~* (https?://([0-9a-z\-_]+)\.(test|test-rooter|test-jishuin|test-festival)\.proginn\.com(:[0-9]+)?)$) {
|
|
|
set $cors "true";
|
|
|
}
|
|
|
if ($request_method = 'OPTIONS') {
|
|
|
@@ -260,7 +260,7 @@ server {
|
|
|
proxy_http_version 1.1;
|
|
|
|
|
|
#=========================CORS nginx配置=============================
|
|
|
- if ($http_origin ~* (https?://([0-9a-z\-_]+\.)\.test\-festival\.proginn\.com(:[0-9]+)?)$) {
|
|
|
+ if ($http_origin ~* (https?://([0-9a-z\-_]+)\.(test|test-rooter|test-jishuin|test-festival)\.proginn\.com(:[0-9]+)?)$) {
|
|
|
set $cors "true";
|
|
|
}
|
|
|
if ($request_method = 'OPTIONS') {
|