Cypress · Senior · Question 3 of 76
Why does Cypress need cy.origin for SSO flows while Playwright doesn't?
- 1Cypress runs inside one origin's page and must switch context explicitly
- 2Playwright doesn't support any third-party login pages at all
- 3Cypress can't send cookies to other domains under any condition
Show the answer
Correct answer: Cypress runs inside one origin's page and must switch context explicitly
Explanation
Playwright drives the browser from outside, so origins don't matter. Cypress runs in the page, so other origins need a separate execution context.