A Content Security Policy (CSP) helps improve website security by enabling the detection and mitigation of certain types of attacks, including XSS (Cross Site Scripting) attacks and content injections.
To allow Eulerian to operate within a CSP context, you need to:
Add a “nonce” token to the script calls in your HTML document. This token is randomly generated by your server for each call and injected into the returned content. In our example, the token is inserted in place of “{TOKEN_NONCE}”.
Add the data collection domain and the "nonce" in script-src to your HTTP Meta or Header "Content-Security-Policy".
If you wish to use LiveTagging (which is highly recommended, especially for customer support), you will also need to add the authorization on the style-src of your CSP. Indeed, files CSS managing the display of the LiveTagging window must be allowed to load.
The 'nonce' method allows us to return the 'nonce' token in Tag Management. For greater compatibility, it is recommended to also add the domains of third-party tags to your CSP. In the case of ad-hoc tags, there is no guarantee that the 'nonce' will be implemented correctly.