When we rewrite URL that has a response to set a cookie (i.e. response has set-cookie header), sometimes, the response will specify to set the cookie in the remote domain, hence locally, the expected cookie isn't present.
This feature request is similar to cookieDomainRewrite option use case at node-http-proxy library (more details at its PR). I hope you could consider it. Thanks for your time 😁