cypress icon indicating copy to clipboard operation
cypress copied to clipboard

chromeWebSecurity:false is not working

Open varshanharshank opened this issue 3 years ago • 2 comments

Current behavior

I had set the attribute chromeWebSecurity:false in cypress.json. But when i execute my test, it is throwing the below error.

Note: In my script, two different urls.

CypressError: cy.visit() failed because you are attempting to visit a URL that is of a different origin.

The new URL is considered a different origin because the following parts of the URL are different:

superdomain

You may only cy.visit() same-origin URLs within a single test.

Desired behavior

It should consider the chromeWebSecurity:false and able to navigate different domains

Test code to reproduce

I am running scripts in BDD style .

Cypress Version

9.1.1

Other

No response

varshanharshank avatar Dec 21 '21 05:12 varshanharshank

I believe you're running into our current multi-domain limitation. We're currently working on supporting multi-domain.

Follow #17336 for progress updates.

For more info see our current multi-domain limitation documentation

mjhenkes avatar Jan 03 '22 19:01 mjhenkes

@mjhenkes, Cypress 11.x is out and this is still an issue.

NorseGaud avatar Nov 23 '22 01:11 NorseGaud

This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided.

cypress-app-bot avatar May 22 '23 19:05 cypress-app-bot

bump

NorseGaud avatar May 22 '23 20:05 NorseGaud

@NorseGaud @varshanharshank would either of you be able to provide a reproduction of the issue with the latest version of Cypress?

AtofStryker avatar May 23 '23 14:05 AtofStryker

Unfortunately we have to close this issue due to inactivity. Please comment if there is new information to provide concerning the original issue and we can reopen.

AtofStryker avatar Jun 01 '23 23:06 AtofStryker