Current Behavior
Reposne_write plugin will delete the server-side cookies
Expected Behavior
No response
Error Logs
No response
Steps to Reproduce
- Run apisix
- setup a route looks like this:
"value": {
"host": "aaa.xxx.com",
"plugins": {
"prometheus": {},
"response-rewrite": {
"headers": {
"Set-Cookie": "tagged=23333; Expires=Wed, 11 Sep 2030 08:00:00 GMT"
}
}
},
"uris": [
"/*"
],
"filter_func": "function(vars)\n return true\nend",
"upstream_id": "127",
"name": "-master_r_2022-08-17_3-DEFAULT",
"priority": 0,
"id": "345"
},
- the backend server setup another cookie
- check the response, you will find the server-side cookies were deleted.
Environment
- APISIX version (run
apisix version):1.5
- Operating system (run
uname -a):
- OpenResty / Nginx version (run
openresty -V or nginx -V):
- etcd version, if relevant (run
curl http://127.0.0.1:9090/v1/server_info):
- APISIX Dashboard version, if relevant:
- Plugin runner version, for issues related to plugin runners:
- LuaRocks version, for installation issues (run
luarocks --version):
Current Behavior
Reposne_write plugin will delete the server-side cookies
Expected Behavior
No response
Error Logs
No response
Steps to Reproduce
"value": {
"host": "aaa.xxx.com",
"plugins": {
"prometheus": {},
"response-rewrite": {
"headers": {
"Set-Cookie": "tagged=23333; Expires=Wed, 11 Sep 2030 08:00:00 GMT"
}
}
},
"uris": [
"/*"
],
"filter_func": "function(vars)\n return true\nend",
"upstream_id": "127",
"name": "-master_r_2022-08-17_3-DEFAULT",
"priority": 0,
"id": "345"
},
Environment
apisix version):1.5uname -a):openresty -Vornginx -V):curl http://127.0.0.1:9090/v1/server_info):luarocks --version):