openresty相關應用代理配置
修改響應頭cookie加入secure
header_filter_by_lua_block{
local cookies = ngx.header.set_cookie
if cookies then
if type(cookies) == “table” then
local cookie={}
for k,v in pairs(cookies) do
cookie[k]=v…";httponly"
end
ngx.header.set_cookie = cookie
else
ngx.header.set_cookie= cookies…";httponly"
end
end
}