Configure CSP rules
Content Security Policy (CSP) is a mechanism by browsers and web servers that restricts resources that are allowed to be loaded. This limits an app's capabilities within the browser and mitigates certain types of vulnerabilities. For example, a Content Security Policy can ensure that data can't be leaked to third-party services as it prevents external network connections. For more information on Content Security Policies, visit MDN's article on Content Security Policy.
By default, the Dynatrace platform only defines a small set of CSP rules. You can configure your app's custom CSP rules if you need to access more sources from your app—such as custom fonts and custom UI widgets from non-platform domains, etc. Requesting these exceptions via the app configuration file ensures transparency and helps users understand the consequences of installing apps in their environment.
Configurable CSP rule exceptions
Because of security restrictions, you can't configure every available CSP rule for your app. You can extend the following directives:
Read more about allowed values in the [MDN documentation](ADD LINK).
Name | Purpose | Allowed values |
---|---|---|
font-src | Applying custom fonts to the app. |
|
img-src | Loading custom images from outside of the platform |
|
media-src | Loading media files (videos, audio) |
|
script-src | Loading custom scripts from outside of the platform |
|
style-src | Loading custom styles from outside of the platform |
|