Redirect request from external origin doesn't apply the base domain cookies #29719
Labels
stage: needs investigating
Someone from Cypress needs to look at this
topic: cookies 🍪
topic: cy.origin
Problems or enhancements related to cy.origin command
Current behavior
It seems like Cypress is unable to re apply cookies set for the base domain after redirect from an different origin.
I found that while testing a typical OAuth authorization code flow. It requires at some point for the server to store a challenge (aka code) in session to then use it to verify the params when the identity provider calls back the server. In my case, the session is a encrypted cookie and while it works while manually testing I can not get this test to pass with Cypress.
Desired behavior
When the external domain wrapped in
cy.origin
redirects to the base domain, the request should contain the cookies for the base domain.Test code to reproduce
Cypress Version
13.12.0
Node version
22
Operating System
macOS 14.5
Debug Logs
No response
Other
No response
The text was updated successfully, but these errors were encountered: