Protect Yourself from Magecart Using Subresource Integrity
By- September 12, 2018
Protecting a resource is as easy as adding the "integrity" attribute to an asset’s HTML tag:
<script src="https://example.com/v1.0.0/include.js" integrity="sha256-Rj/9XDU7F6pNSX8yBddiCIIS+XKDTtdq0//No0MH0AE=" crossorigin="anonymous"> </script>
I hope you are inspired to integrate Subresource Integrity into your website. All Tinfoil Security scans flag external resources that are not protected by subresource integrity. Give it a try by signing up for our 30-day free trial.