You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a cypress project (current latest version v14)
with experimentalModifyObstructiveThirdPartyCode set to true,
then create a simple test with this code:
cy.visit('https://app.fenergonebula.com/')
The page https://app.fenergonebula.com that normally loads in any browser, doesn't load.
In the console errors you can see that the error is due to
the JS resource integrity checks failing and thus not loading the page's JS:
Failed to find a valid digest in the 'integrity' attribute for resource
It seems like experimentalModifyObstructiveThirdPartyCode
is modifying some of those JS tyring to de-obfuscate it,
but Cypress fails to disable the resource integrity checks.
The flag experimentalModifyObstructiveThirdPartyCode is required
because the test needs to load Microsof'ts login page,
which is required according to this official guide for AAD.
Since the flag experimentalModifyObstructiveThirdPartyCode is global
and not configurable dynamically,
I can't disable it during the page load.
The target application uses script tags with integrity:
Sorry, wrong repo, I meant to create this issue into cypress, not the documentation.
I will close this issue and use the other one: cypress-io/cypress#30960
Description
experimentalModifyObstructiveThirdPartyCode breaking resource integrity checks and page not loading
URL of Issue(s)
https://app.fenergonebula.com
Steps to replicate
Create a cypress project (current latest version v14)
with
experimentalModifyObstructiveThirdPartyCode
set totrue
,then create a simple test with this code:
The page https://app.fenergonebula.com that normally loads in any browser, doesn't load.
In the console errors you can see that the error is due to
the JS resource integrity checks failing and thus not loading the page's JS:
Failed to find a valid digest in the 'integrity' attribute for resource
It seems like
experimentalModifyObstructiveThirdPartyCode
is modifying some of those JS tyring to de-obfuscate it,
but Cypress fails to disable the resource integrity checks.
The flag
experimentalModifyObstructiveThirdPartyCode
is requiredbecause the test needs to load Microsof'ts login page,
which is required according to this official guide for AAD.
Since the flag
experimentalModifyObstructiveThirdPartyCode
is globaland not configurable dynamically,
I can't disable it during the page load.
The target application uses script tags with
integrity
:Browser
Google Chrome 131(64-bit)
Device
Additional Information
No response
The text was updated successfully, but these errors were encountered: