diff --git a/_docs/20_install-script/19_sri.md b/_docs/20_install-script/19_sri.md index 8e278e3f..3c070873 100644 --- a/_docs/20_install-script/19_sri.md +++ b/_docs/20_install-script/19_sri.md @@ -1,10 +1,11 @@ --- title: SRI version category: install-script +skip_pjax: true permalink: /sri sriVersion: 12 sriHash: sha256-iSFbgQEAJgoeLh+lTWPVLouX2RiBERlq4qAOgM8aK+g= sha384-VVOeJV8okLf6owAyITVK14p3AX78fPOStksa5tYEruAngS4yv5EYM26KP9bvcZ/L sha512-DrEJKCUTeTeOenmoMwQa6d3KSiKXCFdZjjbsJhzh4vYFXPxjoU8dfd8oISmIDqrkkRYeCriuEC5TEah3aONxsg== -last_modified_at: 2026-10-25 +last_modified_at: 2026-10-29 --- If you want to use SRI you can do this by using specific scripts. The default scripts are changing to reflect new features or code optimizations. You want to use SRI if you consider it a risk when our scripts change. You can also host our SRI script on your own server or CDN. @@ -17,7 +18,49 @@ When you want to use our SRI version of our script you will need to update your ``` -When using a [custom domain](/bypass-ad-blockers) you need to use this script: `https://CUSTOM.DOMAIN/v{{ page.sriVersion }}/app.js`. Replace the `CUSTOM.DOMAIN` with your custom domain. To generate an SRI hash for your custom domain you can use [report-uri.com](https://report-uri.com/home/sri_hash) or [srihash.org](https://www.srihash.org/). +When using a [custom domain](/bypass-ad-blockers), use `https://CUSTOM.DOMAIN/sri/v{{ page.sriVersion }}.js` instead. That script contains your custom domain, so its hash differs from the one above. Enter your custom domain to get the embed script with its hash, calculated in your browser: + +
+ + +
+ + + To verify if our script is an SRI version you can always check for `SRI-version` in the first line: