<script src="https://cdn.example.com/lib.js" integrity="sha384-oqVuAfXRKap7fdgcCY5uykM6+R9GqQ8K/uxy9rx7HNQlGYl1kPzQho1wx4JwY8wC" crossorigin="anonymous"></script>
Replace the hash with one generated from the exact file bytes. Mismatch blocks the script. Pair with crossorigin="anonymous" for cross-origin SRI.
crossorigin="anonymous"
Lines: 0 | Characters: 0