Coder.comC
Coder.com3y ago
1 reply
TIEB62

How do I add things to the CSP ?

For Cloudflare Rocket Loader & Analytics, it requires editing CSP by :
- Adding script-src 'self' ajax.cloudflare.com; for Rocket Loader
- Adding script-src static.cloudflareinsights.com; connect-src cloudflareinsights.com for the Analytics

More info here: https://developers.cloudflare.com/fundamentals/get-started/reference/content-security-policies/

Actually I just have CSP violation errors in the devtools

(Please mention me to answer)
Thank you for any help you can offer
Was this page helpful?