Open alrra opened 7 years ago
While sending this header is still effective in older browsers, it may be considered deprecated:
X-XSS-Protection
.We are retiring the XSS filter in Microsoft Edge beginning in today’s build. Our customers remain protected thanks to modern standards like Content Security Policy, which provide more powerful, performant, and secure mechanisms to protect against content injection attacks, with high compatibility across modern browsers.
If a site is using CSP, without allowing unsafe-inline
for scripts then X-XSS-Protection
has very little value.
Safari has removed this header. However, Safari updates are tied to iOS updates (and to a lesser degree, macOS updates). For that reason, versions of Safari that include the XSS filter will still be in use for a few years.
OWASP recommends sending X-XSS-Protection: 0
because the XSS auditor ironically exposes vulnerabilities. See https://owasp.org/www-project-secure-headers/#div-headers
1; mode=block
. (?)See also: