cypress: Cypress Cross Origin error with Chrome despite the chromeWebSecurity to false
Current behavior
We have a test that needs to click to an element leading to an external url. Once the url is loaded some checks happen. We used to have the test working on 9.7. But since the migration to 10.4.0 we have this test failing with the error explaining to add the chromeSecurity flag to false but we already have it set on the cypress.config.js. Maybe a small detail here : we call cypress with our own config.js provided with a path.
Desired behavior
The test should work as before since the security flag is disabled.
Test code to reproduce
afterEach(() => {
cy.url().should("include", EXTRA_INFORMATION);
});
it("Opens an external url with extra information on element click", () => {
cy.get(SELECTOR)
.first()
.click();
});
Cypress Version
10.4.0
Other
Running on windows 10
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 23 (12 by maintainers)
OK i found some little time and was able to easily reproduce : https://github.com/AurelienKun/demo
Same 104 version. You can see it on the screenshot I have provided 😃
Great ! I’ll give it a try soon. I’ll keep you updated as soon as I get some logs.
This is really weird. I tried this on other laptop running linux and it works like you. I will update on tuesday with a screenshot on my windows machine (from work) where it fails.