HTML Subresource Integrity
HTML Subresource Integrity
Posted Jul 4, 2016 16:30 UTC (Mon) by oever (guest, #987)In reply to: HTML Subresource Integrity by flussence
Parent article: HTML Subresource Integrity
I've just tested RSI with Chromium 51 and Firefox 47. Both browsers check RSI on the <script> and <link> and refuse to use the linked CSS or JavaScript when the checksum is not correct. This is in agreement with what is written in the parent article.
What I've not checked, is whether the browser will use the checksum to retrieve the file from the cache instead of loading it from a 3rd party browser.
This is an quick way to get a base64 encoded checksum for use in HTML with SRI:
cat file | openssl dgst -binary -sha256 | base64