【问题标题】:Subresource integrity for animate.css?animate.css 的子资源完整性?
【发布时间】:2016-11-02 09:15:21
【问题描述】:

Google 没有就该主题提出任何问题,并且存在一些与 Stackoverflow 上的子资源完整性相关的问题,但我的问题是:您如何为 CDN <link> 生成此加密哈希?就我而言,它是 animate.css,但我想这可以应用于任何自定义 CSS 文件。

干杯

【问题讨论】:

标签: animate.css subresource-integrity


【解决方案1】:

您可以使用SRIHash from Mozilla

使用来自 JSDelivr 的 animate.css 的示例

<link rel="stylesheet" 
      href="https://cdn.jsdelivr.net/animatecss/3.5.2/animate.min.css" 
      integrity="sha384-OHBBOqpYHNsIqQy8hL1U+8OXf9hH6QRxi0+EODezv82DfnZoV7qoHAZDwMwEJvSw" 
      crossorigin="anonymous">

或者您可以使用控制台生成它:

https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity#Tools_for_generating_SRI_hashes

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-07-05
    • 2017-12-22
    • 2016-02-22
    • 2018-07-23
    • 2019-03-09
    • 1970-01-01
    • 2017-01-15
    • 2017-10-18
    相关资源
    最近更新 更多