cypress: Cypress does not yet provide an option to disable websecurity for Firefox
Problem:
I am unable to run Cypress on Firefox due to its adherence to same origin policy. This issue can be fixed on chrome by setting the chromeWebSecurity to false in configuration.
Cypress should provide such a solution for the firefox browser.
The error message received on cy.visit():
Permission denied to access property "addEventListener" on cross-origin object
Versions
Cypress version : 4.8.0 O.S: Ubuntu 18.04 Browser : Firefox 77
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 33
- Comments: 22 (2 by maintainers)
Commits related to this issue
- Avoid explicit firefox flag due to potential issue with firefox websecurity - see https://github.com/cypress-io/cypress/issues/7677 — committed to theonlyway/openlifter by MichaelVessia 3 years ago
Hi @jennifer-shehane , do we have a timeline from Cypress team for this? We’re really looking forward to this.
Please see this 9 year old thread on the Bugzilla forums - if you want to see a simple switch added that achieves similar or the same functionality in Firefox - make a Bugzilla account and upvote this thread:
This has been an ongoing discussion on the firefox threads for the past 6 years: https://bugzilla.mozilla.org/show_bug.cgi?id=1039678
Although I’d like to see resolution, it seems as though we’d need buy-in from the firefox team to make this a reality.
Has someone opened an issue to firefox related to this? Maybe the cypress team can do it and have more visibility than a normal dev. For now we are going to skip tests in firefox until there is a solution.
I’m in on this proposal. I would love to be able to use iframes on firefox, but now I can’t. thanks!