Cypress: How can we bypass cross origin error in Firefox? (cross origin issue, outside cy.origin) #23103
Unanswered
faith-berroya
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Part 1 question: Cypress: How can we bypass cross origin error in Firefox? (iframes)
Hi, @jennifer-shehane. I am currently testing download functionality which needs to go to a different domain to check. I also list the format of the webpages. I altered my code a bit to not include sensitive information.
The process is:
The test stops after visiting the new link (original link:
starting.originalWebsite.com
, new link:emailWebsite.com
) because it's already outsidecy.origin()
syntax. My problem withcy.origin()
is that the email contains iframes andcy.origin()
views the iframe as its native page. Cypress cannot see the original native page anymore and I cannot anymore interact with it. I also have thechromeWebSecurity
set to false.The code below works in Chrome but not in Firefox because we're getting the error below. What can I possibly do for this? So Firefox will allow my testing. Thank you!
Beta Was this translation helpful? Give feedback.
All reactions