Remediation Steps
Follow the steps below to remediate this finding on Generic / Developer guidance.
Subresource Integrity (SRI) allows browsers to verify that third-party files (scripts, stylesheets) have not been tampered with.
For each externally hosted resource, generate a hash and add the integrity attribute:
openssl dgst -sha384 -binary lib.js | openssl base64 -AOr use an online SRI hash generator.
Add to your HTML:
<script src="https:
//cdn.example.com/lib.js"integrity="sha384-<base64hash>"
crossorigin="anonymous"></script>