Hello, my product enforces a strict content security policy (CSP) so I need to list the Dato domains we reach out to for API requests, images, etc. I couldn’t find a list of those domains in your documentation. Could you please list the required directives and add them to the docs?
Welcome to the DatoCMS community! That’s a great question, and you’re right that we don’t currently have a dedicated CSP documentation page. I’ll compile the domains you’ll need for your Content Security Policy configuration.
If you’re embedding the DatoCMS admin interface or using plugins (frame-src):
*.admin.datocms.com (the CMS editor interface)
Keep in mind that if you’re on an Enterprise plan with a custom asset domain, you’d replace www.datocms-assets.com with your custom domain. The same applies if you use a custom CMS admin domain.
I agree this would be super helpful to have in the docs! I’ll pass along your feedback internally
One more to add in the meantime, though: datocms-assets.6c36efb897e5eae1d2a887cfa632eea9.eu.r2.cloudflarestorage.com is where asset uploads go (whenever you upload something via the media area or API)
@maxime.preaux Yes, for simply fetching and displaying images, www.datocms-assets.com is sufficient. That domain points to our Imgix CDN which serves all your optimized images.
The Cloudflare R2 domain (datocms-assets.6c36efb897e5eae1d2a887cfa632eea9.eu.r2.cloudflarestorage.com) is only needed if your application uploads assets to DatoCMS directly, like if you’re using the Content Management API to programmatically create uploads or if your frontend needs to interact with the Media Area upload flow. If your product only reads and displays content (which is the common case for most frontend applications), you won’t need the R2 domain in your CSP.