你如何找到 Bootstrap 5 调试版本的子资源完整性(SRI)代码?

huangapple go评论59阅读模式
英文:

How do I find the Subresource Integrity (SRI) code for the debug version of bootstrap 5?

问题

Bootstrap 5.3.0-alpha3托管在JsDelivr网络上。我可以在这个链接https://www.jsdelivr.com/package/npm/bootstrap?tab=stats 上看到。我可以右键点击复制图标,并复制缩小版本的SRI代码。但是,我在哪里找到非缩小/调试版本的资源的SRI代码呢?

这是缩小版本的链接:
https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/js/bootstrap.min.js

这是非缩小版本的链接:
https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/js/bootstrap.js

英文:

Bootstrap 5.3.0-alpha3 is hosted on JsDelivr network. I can see that on this link https://www.jsdelivr.com/package/npm/bootstrap?tab=stats

I can right click the copy icon and copy the SRI code for the minified version. But where do I find the SRI code for the non-minified/debug version of the resource?

This is the minified version
https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/js/bootstrap.min.js

This is the un-minified version.
https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/js/bootstrap.js

答案1

得分: 0

我最终使用了一个类似于https://www.srihash.org的SRI哈希生成器。

英文:

I ended up using an SRI Hash generator like https://www.srihash.org

huangapple
  • 本文由 发表于 2023年5月18日 05:08:21
  • 转载请务必保留本文链接:https://go.coder-hub.com/76276209.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定