【发布时间】:2016-02-22 13:29:19
【问题描述】:
我在 Heroku 上搭建了一个 django 博客应用程序,目前一切正常,但我有一个关于 Missing Subresource Integrity Protection 的小问题。
我对使用 heroku 插件还很陌生,但我已经设置了 tinfoil 以确保安全,在初始扫描后我遇到了 3 个漏洞。扫描结果显示我是Missing Subresource Integrity Protection,他们向我推荐了这个:
> All externally loaded resources must have their content pinned using
> the subresource integrity mechanisms provided by modern browsers. This
> involves computing a hash of the contents of the resource, and
> specifying this hash when loading that resource. In the case of a
> script, this might look like the following:
<script src="https://example.com/include.js"
integrity="sha256-Rj/9XDU7F6pNSX8yBddiCIIS+XKDTtdq0//No0MH0AE="
crossorigin="anonymous"></script>
SRI Hash is an option for computing the necessary hashes.
谁能解释一下这一切意味着什么,以便我可以从中学到一些东西,以及将来该怎么做才能避免这种情况?
【问题讨论】:
标签: python ruby-on-rails django heroku subresource-integrity