Tests failures caused by wrong integrity hash for js file (SRI) #29751
-
We started securing our websites with But our cypress tests stopped working because the main JS file has been blocked with a different hash than in the HTML. Example error:
The hash of the file is I checked the documentation and all I found, are these two configs:
But they didn't fix the problem. :( How can I get my tests running back again? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Ok, probably found a solution. The documentation https://docs.cypress.io/guides/references/experiments#Configuration is somehow misleading. |
Beta Was this translation helpful? Give feedback.
Ok, probably found a solution.
the setting
experimentalSourceRewriting: true
fixed it.The documentation https://docs.cypress.io/guides/references/experiments#Configuration is somehow misleading.
experimentalModifyObstructiveThirdPartyCode
is related to SRI, but didn't fix it.