- 152 of 200
- Security & Infrastructure
- HTTP Security Headers
- Low
Short answer: X-XSS-Protection switched on a cross-site scripting filter in older browsers. MDN now marks it deprecated and non-standard, and OWASP advises not sending it, or sending 0. The real protection is a Content-Security-Policy. Check 152 passes if you have either this header or a CSP.
What Crawl Audit checks
- Pass: an X-XSS-Protection header, with any value.
- Pass: no X-XSS-Protection, but a Content-Security-Policy is set.
- Warning: neither. The advice is to add a CSP (check 149), not this header.
Because any value passes, a site sending the old 1; mode=block passes too, even though current advice has moved on.
What the sources say
- MDN: "Avoid using this feature in new projects." And: "It is recommended that you use Content-Security-Policy instead of XSS filtering."
- OWASP: "Do not set this header or explicitly turn it off." Its example is
X-XSS-Protection: 0.
What to do
- If you send
1; mode=blocktoday, change it to0or remove it. - Put the effort into a CSP instead (check 149).
On devmarde.com
We send neither this header nor a CSP, so this check warns for us. Our fix is the CSP, not this header; check 149 explains where that stands.
Sources
- MDN, X-XSS-Protection (updated 21 August 2026).
- OWASP, HTTP Headers Cheat Sheet, checked 6 October 2026.
See how your site does on every check.
Crawl Audit runs this check and 199 others on your domain. The full report is $7.89, one time. The free check on this site covers 25.