freeCodeCamp / freeCodeCamp/devdocs

Add integrity check to assets files served by CDN

未关闭
#1,113 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
improvement
主要语言
Ruby
星标
39.5k
派生
2.6k
平均合并
4 天 32 分钟
30 天内合并 PR
13

描述

We can add the [`integrity` attribute to the ``](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity). Sprockets already [supports that feature](https://www.rubydoc.info/github/rails/sprockets/Sprockets/DigestUtils:integrity_uri), the only required change is on the `stylesheet_tag` helper.

_Originally posted by @eloyesp in https://github.com/freeCodeCamp/devdocs/issues/1112#issuecomment-543292784_

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。