SRI Hash Generator
Subresource Integrity Tags
SRI Hash Guide
What is SRI
- Subresource Integrity
- Verifies CDN resources haven't been tampered with
- Browser automatically validates the hash
- SHA-384 algorithm is recommended
How to Use
- Add integrity attribute to script/link tags
- Also add crossorigin="anonymous"
- CDN resources must support CORS
- Re-generate hash after resource updates