Skip to main content

🔑 Content Security Policy (CSP)

The new Content-Security-Policy HTTP response header helps you reduce XSS risks on modern browsers by declaring which dynamic resources are allowed to load.

If you are making use of CSP, you must add the following directives to your CSP header:

frame-src 'self' https://*;
script-src 'self' https://*;
style-src 'self' 'unsafe-inline';
connect-src 'self' https://*;
media-src 'self' https://*;

Depending on your setup you might need to do some further customizations. Please check the console log for any CSP errors.