# Subresource Integrity (SRI)

DevFeed: [Subresource Integrity (SRI)](<https://devfeed.tech/articles/subresource-integrity-sri-89182.md>)

Original publisher: [Read original article](<https://specification.website/spec/security/subresource-integrity/>)

Author: Joost de Valk

Published: 2026-07-02T00:00:00Z

Content type: tutorial

Language: en

Sources: [The Website Specification](<https://devfeed.tech/sources/the-website-specification.md>)

Topics: [software artifact signing](<https://devfeed.tech/topics/software-artifact-signing.md>), [frontend security](<https://devfeed.tech/topics/frontend-security.md>), [Cryptography](<https://devfeed.tech/topics/cryptography.md>), [cURL](<https://devfeed.tech/topics/curl.md>), [openssl](<https://devfeed.tech/topics/openssl.md>)

Tags: [browser](<https://devfeed.tech/tags/browser.md>), [cryptographic](<https://devfeed.tech/tags/cryptographic.md>), [csp](<https://devfeed.tech/tags/csp.md>), [integrity](<https://devfeed.tech/tags/integrity.md>), [recommended](<https://devfeed.tech/tags/recommended.md>), [security](<https://devfeed.tech/tags/security.md>), [third-party](<https://devfeed.tech/tags/third-party.md>)

## AI overview

The article explains how Subresource Integrity (SRI) uses cryptographic hashes and browser checks to prevent modified external scripts and stylesheets from running. It covers generating and applying hashes, pairing SRI with Content Security Policy, using Integrity-Policy headers, and common implementation and verification steps.

## Source excerpt

SRI adds a cryptographic hash to every third-party script and stylesheet so the browser refuses to run modified files. Essential for any external JS or CSS you depend on.