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

更换 cdnjs 和 Google Fonts 源 #165

Open
wants to merge 1 commit into
base: next
Choose a base branch
from

Conversation

Alice39s
Copy link

已移除来自 bootcss.com, bootcdn.com, staticfile.net, staticfile.org, cdn.polyfill.io 镜像的任何文件引用,这些镜像源已被发现有 篡改文件并插入恶意代码 的行为,可能会导致被跳转至恶意网站。

另外,fonts.loli.net 在很早之前就被吊销备案,已没有国内镜像节点,被 GFW 阻断情况非常严重。

因此已替换为带有国内节点的 fonts.googleapis.com 官方源。

另外为了防止再次被供应链攻击,已在外部资源加上基于 SHA384 的哈希验证,确保外部文件不被篡改。

- Switch Google Fonts to official API
- Switch CDNJS mirror to Zstatic[.]net
- Implement SHA384 SRI hashes for external resources
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

Successfully merging this pull request may close these issues.

1 participant