Security headers
-
SO I added this to the end of my .htaccess after #end wordpress
# security headers
Header always set Strict-Transport-Security: “max-age=31536000” env=HTTPS
Header always set Content-Security-Policy “upgrade-insecure-requests”
Header always set X-Content-Type-Options “nosniff”
Header always set X-XSS-Protection “1; mode=block”
Header always set Expect-CT “max-age=7776000, enforce”
Header always set Referrer-Policy: “no-referrer-when-downgrade”
Header always append X-Frame-Options SAMEORIGINin my site healthier they notice gone away and now it is back saying:
Your .htaccess file does not contain all recommended security headers. I am using godaddy. On other sites, the message is gone. Please advise HTTP Strict Transport Security Content Security Policy: Upgrade Insecure Requests X-XSS protection X-Content Type Options Referrer-Policy Expect-CT
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘Security headers’ is closed to new replies.