Like CSP, SRI is a security feature that allows browsers to verify that the files they retrieve (for example, from a CDN) are delivered without unexpected manipulation. It works by providing a cryptographic hash that the retrieved file must match.
To enable Eulerian to function within an SRI context, you must use a fixed version of the Eulerian JavaScript. Our servers allow you to specify the version you will be working with.
It specifies two “static” parameters that you will need to replace:
<EA_VERSION> : The version of the main ea.js.To find the version you wish to use, go to this address (replace with your tracking domain):my.tracking-domain.com/fv/version.txtYou will get a list of available versions. Choose one (preferably the highest one).This is your<EA_VERSION> variable that needs to be replaced.
<EA_SRI_SHA_STRING> : The result of the hashing prefixed by its type ( sha256 , sha384 or sha512 ) and a hyphen.Choose from one of the available hashes (sha256, sha385, sha512), which we will call <HASH> here, and then go to this address:my.tracking-domain.com/fv/<EA_VERSION>/ea.<HASH>.txt?2Example for our website www.eulerian.com with the tracking domain mj23.eulerian.com and a sha256 :https://mj23.eulerian.com/fv/5.5.1/ea.sha256.txt?2You will obtain the current hash of this version of JavaScript. Once prefixed withsha<HASH>-, this is your<EA_SRI_SHA_STRING> variable to replace.With our example: uuQ2A5JrShq7Hbj6PlnRdnpJ/N4mU9RkLHJEy8kp7Lo=The variable <EA_SRI_SHA_STRING> will therefore be sha256-uuQ2A5JrShq7Hbj6PlnRdnpJ/N4mU9RkLHJEy8kp7Lo=