X-Content-Type nosniff and X-XSS-Protection Missing
-
After performing a Malware Scan I was recommended to do as follows:
Security Header: X-XSS-Protection Missing
We did not find the recommended security header for XSS Protection on your site.
https://kb.sucuri.net/warnings/hardening/headers-x-xss-protectionand
Security Header: X-Content-Type nosniff
We did not find the recommended security header to prevent Content Type sniffing on your site.
https://kb.sucuri.net/warnings/hardening/headers-x-content-typeI put the suggested code into the .htaccess file located in my sites root directory but the recommendation warning for my site still appears in the Sucuri / Malware Scan / Website Details at the bottom of the page.
<ifModule mod_headers.c>
Header set X-XSS-Protection “1; mode=block”
Header set X-Content-Type-Options “nosniff”
</ifModule>What am I overlooking?
- The topic ‘X-Content-Type nosniff and X-XSS-Protection Missing’ is closed to new replies.