https://cypress.io logo
Hey 👋 , attempting to make use of the `experiment...
# e2e-testing
p
Hey 👋 , attempting to make use of the
experimentalSessionAndOrigin
setup and facing difficulties particularly with C/XSRF tokens. In a very similar setup to the introduction video,

https://www.youtube.com/watch?v=Fohrq5GZSD8â–¾

, we have an 0auth flow whereby another superdomain takes care of authentication. Using
cy.origin()
I can interact with the 2nd/auth domain without cypress complaining but then face an issue logging in because the browser the tests are running in remains at the 1st domain (the application). As a result any cookies (in this case the CSRF token) the auth pages try to set are ignored due to SameSite functionality. Anybody had a similar issue?