修改发送头Auth时跨站问题处理
This commit is contained in:
parent
bdb8b9e192
commit
e6c50c15c9
|
|
@ -56,7 +56,7 @@ http {
|
|||
access_by_lua_block {
|
||||
ngx.header["Access-Control-Allow-Origin"] = "*";
|
||||
ngx.header["Access-Control-Allow-Methods"] = "GET, POST, DELETE, PUT";
|
||||
ngx.header["Access-Control-Allow-Headers"] = "DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range";
|
||||
ngx.header["Access-Control-Allow-Headers"] = "DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,Authorization";
|
||||
ngx.header["Access-Control-Max-Age"] = 1728000;
|
||||
ngx.header["Access-Control-Expose-Headers"] = "Content-Length,Content-Range";
|
||||
if ngx.var.request_method == "OPTIONS" then
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user