sulv-hugo-papermod icon indicating copy to clipboard operation
sulv-hugo-papermod copied to clipboard

css失效问题

Open guozhi1 opened this issue 1 year ago • 5 comments

师傅我搭建的博客遇见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. 1680011936592

guozhi1 avatar Mar 28 '23 13:03 guozhi1

这是来自QQ邮箱的自动回复邮件。您好,您的消息已收到!

xyming108 avatar Mar 28 '23 14:03 xyming108

我的github.io好像没遇到这个问题https://xyming108.github.io/,你看看是不是部署过程不正确

xyming108 avatar Mar 29 '23 04:03 xyming108

方法一:禁用 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">

lilPiper avatar Apr 24 '23 05:04 lilPiper

这是来自QQ邮箱的自动回复邮件。您好,您的消息已收到!

xyming108 avatar Apr 24 '23 05:04 xyming108

@lilPiper @xyming108 非常感谢

guozhi1 avatar Apr 24 '23 23:04 guozhi1