Cypress does not yet provide an option to disable websecurity for Firefox
See original GitHub issueProblem:
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
Issue Analytics
- State:
- Created 3 years ago
- Reactions:31
- Comments:17 (1 by maintainers)
Top Results From Across the Web
Web Security - Cypress Documentation
Disabling web security is only supported in Chrome-based browsers. Settings in chromeWebSecurity will have no effect in other browsers. We will log a...
Read more >Disable web security in Cypress just for one test - Stack Overflow
1 and this config is being set in cypress.json - therefore it's global for all tests. Is there a way to disable web...
Read more >disable-web-security to Firefox developer options to globally ...
For Firefox developers, the workaround currently is "please use any other browser than Firefox", which flags Firefox as a developer-unfriendly browser.
Read more >Web Security - Cypress - w3resource
You will notice that Chrome displays a warning that the 'SSL certificate does not match'. This is a normal and correct warning. This...
Read more >Configuring Cypress to work with iFrames & cross-origin sites.
There are a considerations for automating your web application with Cypress, that you may come across, which may lead you to the Cypress...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @jennifer-shehane , do we have a timeline from Cypress team for this? We’re really looking forward to this.
I’m in on this proposal. I would love to be able to use iframes on firefox, but now I can’t. thanks!