18 Feb 2025 03:32 AM
Hello, I'm starting out with Dynatrace Developer, and I'm trying to plot a Sankey diagram. In the development I'm using libraries like Recharts, D3, and Plot, but for some reason it doesn't compile in the Dynatrace app.
Is there a proprietary Dynatrace tool that allows this type of graph to be created, or is there no support for external libraries for custom graphs at the development level?
18 Feb 2025 07:06 AM
Hi @JhonU
In Dynatrace Custom Apps built with AppEngine, you cannot use all NPM packages, such as Axios, or include certain external assets due to Content Security Policy (CSP) restrictions. To incorporate external assets, they must be explicitly permitted by Dynatrace, as outlined in the official guidelines.
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 |
|