[ad_1]
Can someone please let me know if I am typing something wrong when I set the CSP in the htaccess file:
<IfModule mod_headers.c> Header set Content-Security-Policy default-src ‘none’; script-src ‘self’; connect-src ‘self’; img-src ‘self’; style-src ‘self’; </IfModule>
I am using a child theme on a VPS with Apache and Nginx.
I am following the recommendations set by a plugin called “Security Ninja”, The CSP is not implemented, I tried restarting Apache, Nginx to no avail.
TIA
[ad_2]
Try to add this header via PHP. Here an example: