Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disabling Web Security doesn't work after windows update #2001

Closed
kkeranen opened this issue Jun 21, 2018 · 4 comments · Fixed by #2077
Closed

Disabling Web Security doesn't work after windows update #2001

kkeranen opened this issue Jun 21, 2018 · 4 comments · Fixed by #2077
Labels
type: duplicate This issue or pull request already exists
Milestone

Comments

@kkeranen
Copy link

Bug: Windows update broke the setting "chromeWebSecurity": false in cypress.json

Current behavior:

cy.visit results an error: securityError: Blocked a frame with origin "http://localhost:8080" from accessing a cross-origin frame.

Desired behavior:

There were no such error until automatic Windows update. This was double-checked with a colleague. She didn't have the windows update and test was passing, but after windows update she got the same error.

Steps to reproduce:

  1. Add simple test with cy.visit("https://trimbleworld.azurewebsites.net/");
  2. Add "chromeWebSecurity": false in cypress.json
  3. Test is failing, probably because underlying JS script is trying to access other domain. But why did this work before Windows install?

And no, I'm not trying to use this slow login in every test. I have read your best practices. The problem is only in one login-test.

Versions

Windows 10 Enterprise Version 1803 build 17134.1
Cypress 3.0.1
Chrome 67.0.3396.87 64 bit

@jennifer-shehane jennifer-shehane added OS: windows stage: needs investigating Someone from Cypress needs to look at this labels Jun 27, 2018
@jennifer-shehane
Copy link
Member

Do you think that Chrome may have updated in the process of Windows update?

@kkeranen
Copy link
Author

It's possible, but I couldn't find any record or hint of Chrome update.

@Sourabh9200
Copy link

@jennifer-shehane : I am also getting cross origin error even after disabling web security in cypress.json file.
Please advise.
Windows 10 Enterprise
Chrome - Version 67.0.3396.87 (Official Build) (64-bit)

@brian-mann
Copy link
Member

Duplicate of #1951 (comment)

Check my issue there for a fix.

@brian-mann brian-mann added type: duplicate This issue or pull request already exists and removed OS: windows stage: needs investigating Someone from Cypress needs to look at this labels Jul 1, 2018
@brian-mann brian-mann added this to the 3.0.3 milestone Jul 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: duplicate This issue or pull request already exists
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants