git clone https://github.com/jhd4tmr/nitro-proxy.git
cd projectA
npm run dev
cd ../projectB
npm run dev
Then post http://localhost:3000/api/test. There will be two set-cookies key=v and key2=v
Then post http://localhost:3001/api/test. There will be only one set-cookie key2=v
Describe the bug
When the response contains multiple set-cookies, only the last set-cookie can be obtained by using routeRules or proxyRequest, etc.
When the node version is 18.16.0, it is true that only the last set-cookie can be obtained. I also tried other node versions, 17.3.0 and 18.13.0 are fine.
Environment
Build Modules: -
Reproduction
Then post
http://localhost:3000/api/test
. There will be two set-cookieskey=v
andkey2=v
Then posthttp://localhost:3001/api/test
. There will be only one set-cookiekey2=v
Describe the bug
When the response contains multiple set-cookies, only the last set-cookie can be obtained by using routeRules or proxyRequest, etc. When the node version is 18.16.0, it is true that only the last set-cookie can be obtained. I also tried other node versions, 17.3.0 and 18.13.0 are fine.
Additional context
No response
Logs
No response