feat:nginx配置

This commit is contained in:
assistant 2025-07-21 22:57:46 +08:00
parent 8ca5bb4e31
commit 967da82d9d
2 changed files with 2 additions and 2 deletions

View File

@ -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;
# 预检请求的处理

View File

@ -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;
# 预检请求的处理