How do I override the default values of the Content Security Policy (CSP)?
Admin
Documentation
Difficulty level: Intermediate
Configuration mode - System - Security settings
Overriding the default values of the Content Security Policy (CSP) can be useful when there are sources that should only be allowed to load and/or execute specific scripts or content.
To configure this, go to configuration mode and then navigate to System > Security Settings. At the bottom, you will find the option Content Security Policy (CSP) – Override.
Here, the default values of the CSP can be overridden. Keep the following in mind:
- 'self' can be used to refer to the environment itself. This allows the environment, for example, to load its own scripts.
- An asterisk (*) can be used to allow all subdomains, for example by using https://*.i-reserve.net.
- Example of a line (excluding font-src and img-src): 'self' https://www.i-reserve.net https://www.teqa.eu
- For the font-src and img-src options, the data: scheme is added for domains other than the environment itself. Example of a line: 'self' data: https://www.i-reserve.net https://www.teqa.eu


