Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

css失效问题 #5

Open
guozhi1 opened this issue Mar 28, 2023 · 5 comments
Open

css失效问题 #5

guozhi1 opened this issue Mar 28, 2023 · 5 comments

Comments

@guozhi1
Copy link

guozhi1 commented Mar 28, 2023

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

@xyming108
Copy link
Owner

xyming108 commented Mar 28, 2023 via email

@xyming108
Copy link
Owner

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

@lilPiper
Copy link

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

@xyming108
Copy link
Owner

xyming108 commented Apr 24, 2023 via email

@guozhi1
Copy link
Author

guozhi1 commented Apr 24, 2023

@lilPiper @xyming108 非常感谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants