How to set the Content Security Policy?
-
Hello,
I checked my website with https://securityheaders.com/ and it shows me below warning:
Image 1
I changed my Apache setting and added below line to the “httpd.conf” file:
Header always set Content-Security-Policy "default-src 'self'; font-src *;img-src * data:; script-src *; style-src *;"
But my website messed up and many settings like buttons and etc not working!
I changed above line to:
Header set Content-Security-Policy-Report-Only "default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline';"
But problem not solved and https://securityheaders.com/ showing the same warning!
I used the Chromium Developer Tools and see below issues:
Image 2
How can I solve this problem?Thank you.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.