https://cypress.io logo
Login on Auth0
# i-need-help
i
Hi, i try to login to a external website Recruitee, I have look the documentation and i use
cy.origin
Copy code
cy.visit('https://google.com')
    cy.origin(
      'auth.recruitee.com',
      { args: { username, password } },
      ({ username, password }) => {
        cy.visit('/')
        cy.get('input[id="admin_email"]').focus().type(username)
        cy.get('input[id="admin_password"]').focus().type(password, { log: false })
        cy.get('button[type=submit]').focus().click()
      }
    )
    cy.url().should('equal', 'https://app.recruitee.com/')
But instead to be redirected to
https://app.recruitee.com/
, i am on
https://auth.recruitee.com/sign-in
. And the url is equal to nothing instead of one of the two above.

https://cdn.discordapp.com/attachments/1099965142025900154/1099965142755725342/Screenshot_2023-04-24_at_09.45.42.png