Subresource Integrity
Subresource Integrity or SRI is a W3C recommendation to provide a method to protect website delivery.[src] Specifically, it validates assets served by a third party, such as a content delivery network (CDN).[src] This ensures these assets have not been compromised for hostile purposes.[src] To use SRI, a website author wishing to include a resource from a third party can specify a cryptographic hash of the resource in addition to the location of the resource.[src] Browsers fetching the resource can then compare the hash provided by the website author with the hash computed from the resource.[src] If the hashes don't match, the resource is discarded.[src] An value may contain more than one space-separated hash expression.[src] Each expression combines a hash algorithm name with a Base64-encoded digest; when several recognized algorithms are supplied, the user agent validates the response using the strongest algorithm in the list.[src] A sample script element with integrity and crossorigin attribute used by the SRI:[src]
Subresource Integrity or SRI is a W3C recommendation to provide a method to protect website delivery.[src] Specifically, it validates assets served by a third party, such as a content delivery network (CDN).[src] This ensures these assets have not been compromised for hostile purposes.[src] To use SRI, a website author wishing to include a resource from a third party can specify a cryptographic hash of the resource in addition to the location of the resource.[src] Browsers fetching the resource can then compare the hash provided by the website author with the hash computed from the resource.[src] If the hashes don't match, the resource is discarded.[src] An value may contain more than one space-separated hash expression.[src] Each expression combines a hash algorithm name with a Base64-encoded digest; when several recognized algorithms are supplied, the user agent validates the response using the strongest algorithm in the list.[src] A sample script element with integrity and crossorigin attribute used by the SRI: ==References== ==External links== Subresource Integrity on Mozilla Developer Network (MDN) W3C specification SRI on Mozilla Wiki[src]
18 sentences · 18 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Subresource Integrity." encyclopegia.org, 2026, https://encyclopegia.org/wiki/subresource-integrity. Accessed 01 December 2026.
Chicago
"Subresource Integrity." encyclopegia.org. Accessed December 1, 2026. https://encyclopegia.org/wiki/subresource-integrity.
APA
encyclopegia.org. (2026). Subresource Integrity. Retrieved December 1, 2026, from https://encyclopegia.org/wiki/subresource-integrity
Accessed December 1, 2026 · CC BY-SA 4.0 · citation page · JSON