News for hackers. Stuff that matters.
Re:The Baseline Costs of JavaScript Frameworks by robin_reala on Wednesday November 28, 2018 @12:34PM (#18553520)
Subresource Integrity. It’s designed specifically for this scenario: a resource included into your page from a seperate server that could potentially be compromised. Your hash the known good resource and include that hash in your script or link tags as an integrity attribute. When the user’s browser downloads the resource it’ll hash it again and check for a match. Only if the two match will it parse and execute the contents.

https://developer.mozilla.org/en-US/docs/Web/Security/Subres...

There are no comments on this comment yet.