cy.intercept with response generates cross-origin error #14849
Unanswered
tpodom
asked this question in
Questions and Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a login link that links to /login. If I intercept /login using
cy.intercept('/login', { statusCode: 200, body: 'Login page' })
with a response body, I get a cross-origin error. If I usecy.intercept('/login')
it works fine but I'm not understanding why the first one fails.Beta Was this translation helpful? Give feedback.
All reactions