Remediation Steps
Follow the steps below to remediate this finding on Generic / Developer guidance.
Only load JavaScript from origins you control or that you explicitly trust.
Audit all <script src="..."> tags and JavaScript includes and replace any unnecessary third-party sources with self-hosted copies.
For any remaining third-party scripts, add Subresource Integrity (SRI) attributes:
<script src="https:
//cdn.example.com/lib.js"integrity="sha384-<hash>"
crossorigin="anonymous"></script>
Implement a strict Content-Security-Policy that limits script-src to known hosts.