unable to set cookies while re-directing back to app.domain from oAuth.domain in cypress #24258
Unanswered
aot-dev
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 am setting up E2E test for my app which uses oAuth for authentication.
cy.visit('app.domain.com).
cy.origin("auth.domain.com",()=>{
cy.get('user').type('user');
cy.get('pass').type('pass');
cy.get('login).click()
});
cy.url().should('contain', '/dashboard')
after clicking on login, it's unable to load dashboard of app as authentication fails because of missing cookie. I am using cypress version 10.10.0.
Beta Was this translation helpful? Give feedback.
All reactions