Subresource Integrity (SRI)
type: TechArticle
description: 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.
language: en
is part of: Web Specification Studio
author: Web Specification Studio
publisher: Web Specification Studio
license: https://creativecommons.org/licenses/by/4.0/
date modified: 2026-07-02T00:00:00.000Z
citation: Subresource Integrity (W3C Working Draft)
  type: CreativeWork
  publisher: W3C
citation: Subresource Integrity — §3.8 Integrity-Policy (W3C Editor's Draft)
  type: CreativeWork
  publisher: W3C
citation: MDN — Integrity-Policy header
  type: CreativeWork
  publisher: MDN
citation: OWASP — Third Party JavaScript Management Cheat Sheet
  type: CreativeWork
  publisher: OWASP

Web Specification Studio
type: WebSite

Web Specification Studio
type: Organization

breadcrumb
type: BreadcrumbList
item list element: Home
  type: ListItem
  position: 1
  item: https://webspecification.com/
item list element: Spec
  type: ListItem
  position: 2
  item: https://webspecification.com/spec/
item list element: Security
  type: ListItem
  position: 3
  item: https://webspecification.com/spec/security/
item list element: Subresource Integrity (SRI)
  type: ListItem
  position: 4
  item: https://webspecification.com/spec/security/subresource-integrity/