Redirected to chrome-error://chromewebdata/ when X-Frame-Options present on redirected domain
See original GitHub issueCurrent behavior:
I get this screen when I try to access certain pages:
This I can easily access on the same browser used by cypress
I have my “chromeWebSecurity”: false on my cypress file just in case
Desired behavior:
Continue executing the test. Access the pages that are completely accessible when not accessed through cypress’ chrome
Steps to reproduce: (app code and test code)
This is my code, I hope this one is reproducible:
describe('Happy Path B2C / Checkout V2 ', function () {
beforeEach("Home - Catalog - PP - Cart", function(){
//Going directly to product's page
cy.visit('https://juntozstagingv2.com/es-pe/');
//Closing Ads
cy.get("div[data-action='close-mc-modal']").click({force:true})
//Triggerin Login
cy.get("a[aria-haspopup='true']").click();
cy.get("a[href='https://juntozstagingv2.com/account/login']").click();
})
});
Issue Analytics
- State:
- Created 4 years ago
- Reactions:45
- Comments:132 (14 by maintainers)
Top Results From Across the Web
Creating a frame redirect causes Chrome to throw X-Frame ...
I redirect my domain sotaexchange.com to a Discourse forum but get the above error. If I switch it to an HTTP redirect there...
Read more >x-frame-options Deny Error in Facebook login when iframed ...
The browser throws a X-Frame-Options DENY error for my website when iframed as a Facebook App during the Login With Facebook Authentication Process....
Read more >login.microsoftonline refused to connect from iframe
But if not I'm redirected to the login.microsoftonline page. ... I suspect the site either has an x-frame-option or content-security-policy ...
Read more >Solved: Refused to display 'url' in a frame because it set 'X ...
Solved: Hi, I've been developing my app locally using ngrok without errors but when trying to run it on my linux server this...
Read more >redirected to login page. use --login. - You.com | The AI ...
cypress-io/cypressRedirected to chrome-error://chromewebdata/ when X-Frame-Options present on redirected domain#4220. Created over 3 years ago.
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
Reporting in, I’m having this same issue and would love for Cypress to better handle/solve this. It’s an annoying one especially when testing OAuth2 and other stuff that requires domain changing. These things are common nowadays and we should account for allowing us to test such cases.
We are facing the same issue - on 3.4.1 and see chrome-error://chromewebdata/ Has anyone found a workaround? Why is the cypress team not looking into it?