feat:nginx配置
This commit is contained in:
parent
8ca5bb4e31
commit
967da82d9d
|
@ -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;
|
||||
# 预检请求的处理
|
||||
|
|
|
@ -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;
|
||||
# 预检请求的处理
|
||||
|
|
Loading…
Reference in New Issue