【发布时间】:2021-11-26 22:01:41
【问题描述】:
我们使用puppeteer 有时使用playwright 来运行一些集成测试。我们模拟了一些目标页面的脚本依赖,这会导致subresource integrity 哈希不匹配。
Failed to find a valid digest in the 'integrity' attribute for resource 'http://localhost:3000/static/third-party/adobe-target/at-js/2.4.0-cname/at.js' with computed SHA-256 integrity '47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU='. The resource has been blocked."
有没有办法通过标志或配置属性禁用完整性哈希检查?
【问题讨论】:
标签: puppeteer chromium playwright