Subresource Integrity

  • Updated

You can not use sub-resource integrity (SRI) for the osano.js <script> tag. You can continue using SRI on all of your other tags throughout your site, however.

Osano scripts are generated for different combinations of country and language, as a result, each script combination has a different checksum for its content. At the time of writing, this currently stands at (50 languages + 10 regional languages ) * 6 dialog content variants, for a total of 360 unique files created during each Consent Manager publishing event. Whenever you make modifications to the allowed scripts, styles, and configuration, your scripts' checksums will also change. This effectively means that each publishing event will change the content of all 360 files created and would force your team to update the checksum expected for each of these variations.