diff --git a/docker/nginx-yun.conf b/docker/nginx-yun.conf index ff0ba04..441dfd1 100644 --- a/docker/nginx-yun.conf +++ b/docker/nginx-yun.conf @@ -49,7 +49,7 @@ http { # 允许的方法 add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS' always; # 允许的头信息字段 - add_header 'Access-Control-Allow-Headers' 'User-Agent,Keep-Alive,Content-Type,Authorization,Origin' always; + add_header 'Access-Control-Allow-Headers' 'User-Agent,Keep-Alive,Content-Type,Authorization,Origin,source-client' always; # 缓存时间 add_header 'Access-Control-Max-Age' 1728000 always; # 预检请求的处理 diff --git a/docker/nginx.conf b/docker/nginx.conf index c3f750c..f35d3ed 100644 --- a/docker/nginx.conf +++ b/docker/nginx.conf @@ -49,7 +49,7 @@ http { # 允许的方法 add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS' always; # 允许的头信息字段 - add_header 'Access-Control-Allow-Headers' 'User-Agent,Keep-Alive,Content-Type,Authorization,Origin' always; + add_header 'Access-Control-Allow-Headers' 'User-Agent,Keep-Alive,Content-Type,Authorization,Origin,source-client' always; # 缓存时间 add_header 'Access-Control-Max-Age' 1728000 always; # 预检请求的处理