博客
这里发布本站的最近动态
使用 subresource-integrity / SRI保护静态资源不被恶意修改
   5 分钟阅读
很多网站如果源被修改了,会有下面的提示 Failed to find a valid digest in the 'integrity' attribute for resource 'http://aa.aaaaa.com/assets/rubyissues-dc683ef8d41f45e5fdafceda1a26598f.css' with computed SHA-256 integrity 'vGH6uxiZBXnDr46nPJPx2/V82if1Sij2FDhPgXSk6xI='. The resource has been blocked. 是因为启用了 SRI 场景 网页需要需要引用静态资源(CSS/Ja