DEV Community

Discussion on: What is CSP? Why & How to Add it to Your Website.

Collapse
 
aaliyahc profile image
Aaliyahc

What about a WordPress website on shared hosting, adding that code brings 503 error when you reload the site!!
Also adding this code has the same effect, but not always, sometimes it interferes with the theme builder and damages the appearance of my site

Header set Content-Security-Policy "default-src 'self';"

What should I do?