使用范围的完整性
🌐 Integrity using scopes
在作用域上将完整性设置为 true,将把清单中未找到的任何资源的完整性设置为 true。
🌐 Setting an integrity to true on a scope will set the integrity for any
resource not found in the manifest to true.
在作用域上将完整性设置为 null,将导致清单中未找到的任何资源匹配失败。
🌐 Setting an integrity to null on a scope will set the integrity for any
resource not found in the manifest to fail matching.
不包括完整性与将完整性设置为 null 是一样的。
🌐 Not including an integrity is the same as setting the integrity to null.
如果明确设置了"integrity",则用于完整性检查的"cascade"将被忽略。
以下示例允许加载任何文件:
🌐 The following example allows loading any file:
{
"scopes": {
"file:": {
"integrity": true
}
}
}