question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Redirected to chrome-error://chromewebdata/ when X-Frame-Options present on redirected domain

See original GitHub issue

Current behavior:

I get this screen when I try to access certain pages: image

This I can easily access on the same browser used by cypress image

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 is synchronized with this Jira Epic by Unito

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:45
  • Comments:132 (14 by maintainers)

github_iconTop GitHub Comments

49reactions
adomyaty55foundrycommented, Feb 13, 2020

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.

22reactions
chhiragkatariacommented, Sep 30, 2019

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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found