I am trying to set the Content-Security-Policy/CSP headers
in the .htaccess
file. But, its getting blocked for some reason in both development
and production
environments.
The same thing is happening for the .css
and other sources like images.
Header set X-XSS-Protection "1; mode=block"
Header add Content-Security-Policy "script-src 'self' http://*.google.com https://*.google.com https://*.googleapis.com"
...
I have already tried googling for the solution, but so far no luck.