Console: Failed to find a valid digest in the 'integrity' attribute for resource … with computed SHA-256 integrity
A <script> or <link> with an integrity hash was blocked because the downloaded file does not match that hash.
Failed to find a valid digest in the 'integrity' attributehas been blocked. The resource has an integrity metadataNone of the "sha384" hashes in the integrity attribute match the content of the subresourceintegrity attribute mismatch Meaning
Subresource Integrity protects against modified CDN files. The browser prints the actual computed hash. A mismatch means the file changed (new version, different minification), the hash was copied for another URL, or a proxy altered the content. Regenerate the hash for the exact URL you serve.
Common causes
- CDN file updated and
integritynot updated - Hash computed for a different URL, version or file
- Proxy/CDN injecting or minifying content
- Missing
crossorigin="anonymous"on a cross-origin resource - Line-ending or encoding changes in a self-hosted file
⚡ Quick fix
- Recompute the hash from the exact served file
- Add
crossorigin="anonymous"to cross-origin resources - Pin the CDN version in the URL
Detailed fix by platform
Linux
curl -s https://cdn.example.com/lib.min.js | openssl dgst -sha384 -binary | openssl base64 -Athen usesha384-<output>- Or use srihash.org
JavaScript
<script src="https://cdn.example.com/lib@1.2.3/lib.min.js" integrity="sha384-..." crossorigin="anonymous"></script>
How to diagnose
- Hash — Does the computed hash differ from the attribute?
- URL — Exact same URL/version?
- CORS — crossorigin set?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
- Aw, Snap! Chrome: Aw, Snap! Something went wrong while displaying this webpage. Error code: STATUS_ACCESS_VIOLATION / SIGILL / Out of Memory
- BadDigest Upload error: checksum mismatch (BadDigest / Content-MD5 did not match / XAmzContentSHA256Mismatch)
- cf-cache-status: DYNAMIC Cloudflare not caching: cf-cache-status DYNAMIC / BYPASS / MISS every time
Most viewed in Browser
Other ways to find it
Where this error sits
Origin: On your device. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 15 Oct 2026