sulv-hugo-papermod
sulv-hugo-papermod copied to clipboard
css失效问题
师傅我搭建的博客遇见css失效的的问题,我该怎么做?
Failed to find a valid digest in the 'integrity' attribute for resource 'https://guozhi1.github.io/assets/css/stylesheet.fec1645c1e2b4db832483560a196538d114178d41f1d04e26cf8092deac25016.css' with computed SHA-256 integrity 'Wittd8x4rRi8tJFMXGOcfOWrVelWxGHUMQdHiSs/UMI='. The resource has been blocked.
这是来自QQ邮箱的自动回复邮件。您好,您的消息已收到!
我的github.io好像没遇到这个问题https://xyming108.github.io/,你看看是不是部署过程不正确
方法一:禁用 Fingerprint
在 config.yaml
里的 assets:
项下面添加:
disableFingerprinting: true
方法二:重新计算生成自己的 SRI
比如:把 SRI 填到 /public/index.html
里的
<link crossorigin="anonymous" href="/assets/css/stylesheet.*.css" integrity="自己的SRI" rel="preload stylesheet" as="style">
这是来自QQ邮箱的自动回复邮件。您好,您的消息已收到!
@lilPiper @xyming108 非常感谢