Cypress is not preserving cookies for base URL when it redirects to the other URL - All browsers #30464
Labels
stage: needs investigating
Someone from Cypress needs to look at this
stale
no activity on this issue for a long period
topic: cookies 🍪
Uh oh!
There was an error while loading. Please reload this page.
Current behavior
Browser - Electron
Cypress version - 13.5.1
URL - https://capitalconnect.jpmorgan/
While launching this URL with cypress in electron, I don't see this URL call and associated cookies in Dev tools and i see the network call related to redirected URL and cookies associated with it. Since we're not preserving the cookies for the original URL and that's why our login is failing and it returns 400 bad request as app is trying to match the mod_oidc cookie that is set to the original URL
Desired behavior
When we launch the above URL manually on chrome then we see the url and cookie preserved to the original URL. This should happen with electron too while launching via cypress using cy.visit command.
Test code to reproduce
Here's my test code. Please launch it on cypress using electron browser -
Please check the developers tool and you won't see this call (https://capitalconnect.jpmorgan/) with associated cookies. But you would see while launching with Chrome or other browser.
Cypress Version
13.5.1
Node version
18.20.4
Operating System
Windows
Debug Logs
No response
Other
No response
The text was updated successfully, but these errors were encountered: