Security
X-XSS-Protection
Legacy header that enabled the browser's built-in XSS filter. Now deprecated in favor of Content-Security-Policy.
Syntax
X-XSS-Protection: 0 | 1 | 1; mode=block
Example
X-XSS-Protection: 0
Description
X-XSS-Protection enabled the XSS filter in older browsers. Values: 0 (disable), 1 (enable), 1; mode=block (block page on detection).
Recommended modern value is 0 — the filter itself can introduce vulnerabilities.
Deprecated. Modern browsers removed the XSS auditor. Use Content-Security-Policy instead.
Check if your website sends this header correctly
Check your headers →