Skip to content

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

@kkeranen

Description

@kkeranen

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: duplicateThis issue or pull request already exists

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions