Only the first Set-Cookie in response header is handled
See original GitHub issueCurrent behavior:
I have a login request in my app setting multiple cookies with Set-Cookie in response header, and when using cypress, I can see that there is only one which has been set.
Set-Cookie: remember_token=5b56f2475e4fd43e29af88f5|d306269868c30bd9c05dff29c40f80a316ba9f3b89a2411eec828acd7727ee20f33343855a4bf9d6057566d3caeffc450d609e92959bcd13ed51dae61083c924; Expires=Fri, 26-Jul-2019 11:56:48 GMT; Path=/ Set-Cookie: session=7214d946e7d432a2_5b5990f8.Z070v-xcY5DkeZtO9hpIqMUtZiM; Domain=.***.com; HttpOnly; Path=/
And getCookies will tell us:
[{domain: "localhost", expiry: 1564142368.196979, httpOnly: false, name: "remember_token", path: "/", secure: false, value: "5b56f2475e4fd43e29af88f5|e6fd9605b6972dfc04c4d72a3f2053aa9629973154580f181f048cc123eb203d35f364d1e0d67130a868f2e10adefe9fe69ed845e9cd48f81a1fec129834b370"}]
Desired behavior:
Handle multiple Set-Cookie in response header
Steps to reproduce:
Having a response setting multiple cookies, and check whith cypress the cookies after that request
Versions
OS: Debian 9.4 Cypress: 3.0.2
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:7 (3 by maintainers)
Top GitHub Comments
@Far3t We did include some cookie fixes into Cypress recently.
@rbpaul2, @d0n0tdisturb, @aepplerplangrid can any of you confirm this is now working in Cypress version >3.1.2?
Closing as resolved. Please comment if you are still having this issue and we will consider reopening.