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

Integrity failed to find. Resource blocked only in Cypress. Source rewrite not helps #29111

Open
senpl opened this issue Mar 12, 2024 · 3 comments
Labels
Reproducible Can be reproduced stage: needs investigating Someone from Cypress needs to look at this stale no activity on this issue for a long period

Comments

@senpl
Copy link

senpl commented Mar 12, 2024

Current behavior

Cypress behaves different then browsers. Fails during integrity check.
experimentalSourceRewriting: true not solve issues, make errors even worse.

Desired behavior

Cypress behaves like browsers. Load contents and connect to websocket.

Test code to reproduce

Just go to page : cy.visit('https://bmw.autobid.de/'+"en", {failOnStatusCode:false})
Error will appear in console.
I produce repro with example of reproduction at: https://github.com/senpl/cypressReproIntegrityBug.git
They are not present in browsers.

Cypress Version

13.6.6

Node version

v21.6.1

Operating System

Windows 11

Debug Logs

Failed to find a valid digest in the 'integrity' attribute for resource 'https://bmw.autobid.de/_nuxt/entry.2_-sANE9.js' with computed SHA-384 integrity 'M/xDBO3gmY8W3Hyw50moNlEq8UTXSAurEe0vCcVS3w9yifQYw82fntJQ3gIUnuDN'. The resource has been blocked.

Other

Cypress_ySMzHpBS31

@jennifer-shehane jennifer-shehane added stage: needs investigating Someone from Cypress needs to look at this Reproducible Can be reproduced labels Mar 12, 2024
@senpl
Copy link
Author

senpl commented Apr 22, 2024

In my case cypress.config.ts setting modifyObstructiveCode: false, fix issue still I would like that to work without this settings in future.

@pitgrap
Copy link
Contributor

pitgrap commented Jun 26, 2024

experimentalSourceRewriting: true, fixed it for me.

@cypress-app-bot
Copy link
Collaborator

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 cypress-app-bot added the stale no activity on this issue for a long period label Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Reproducible Can be reproduced stage: needs investigating Someone from Cypress needs to look at this stale no activity on this issue for a long period
Projects
None yet
Development

No branches or pull requests

4 participants