📜  子资源完整性验证或 SRi - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:05.183000             🧑  作者: Mango

代码示例1
Subresource Integrity (SRI) is a method that uses cryptography to verify
the authenticity of a resource. Particularly useful when fetching resourcers
from CDNs.

In other words, has the content I fetched been changed from what a trusty 
third party has agreed it to be (via hashing)?