CSPs prevent your frontend code from accessing untrusted resources, which enhances your web app’s security.
To configure a CSP that works with Bytescale, include the following directives in your Content-Security-Policy HTTP response header:
connect-src https://upcdn.io https://api.bytescale.com https://upload-prod-files.s3.dualstack.us-east-1.amazonaws.com;img-src https://upcdn.io;media-src https://upcdn.io;Explanation:
This policy allows img, video, and audio elements to be loaded from the Bytescale CDN (upcdn.io).
This policy also allows Bytescale API calls (api.bytescale.com and upload-prod-files.s3.dualstack.us-east-1.amazonaws.com).
If you need to support additional asset types, add the necessary directives, or use broader ones to fit your use case.
CSP headers play a critical role in strengthening the security of your web application by controlling what content is allowed to load.
Here's why they matter:
Implementing CSP headers is an essential layer of defense in safeguarding your application from a wide range of security threats.
This website uses cookies. By continuing you are consenting to the use of cookies per our Cookie Policy. Our legal policies were last updated February 3 2026.
This website requires a modern web browser -- the latest versions of these browsers are supported: