Skip to main content

Whitelist CDN Domains

Self Hosted

You can import an external library in of your preference to extend your app's functionality. ToolJet supports jsDelivr and Skypack by default but you can load any other library by simply whitelisting the CDN URL. Learn how to import libraries using CDNs by following our Importing External Libraries guide.

To do this, set the CSP_WHITELISTED_DOMAINS environment variable with your custom CDN domains. Once configured, ToolJet automatically updates the Content Security Policy (CSP) headers to include the approved CDN. This ensures secure loading of external libraries while maintaining CSP compliance.

VariableDescription
CSP_WHITELISTED_DOMAINSCDN domains ( eg: cdn.example.com, assets.mycompany.com, static.customcdn.net)
note

The ability to Whitelist CDN Domains from the UI is coming soon!