Join our Newsletter — 33% off our NHI Course
Home› Guides› Deprecated Security Headers Reference: X-XSS-Protection, Expect-CT, HPKP and…
Guide Web & API Security

Deprecated Security Headers Reference: X-XSS-Protection, Expect-CT, HPKP and Feature-Policy and What Replaced Them

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 27 November 2026 12 min read
On this page

Old security headers linger in server configs, CDN rules and framework defaults long after browsers stop honouring them, and some of them now do harm. X-XSS-Protection can introduce vulnerabilities, a forgotten Public-Key-Pins header was once able to lock users out of a site, and Feature-Policy has been replaced by a header with a different syntax. This reference covers each retired header: its status, why it was dropped, what replaced it, and the exact action to take. It is written for web developers, platform engineers who own reverse proxies and CDNs, and application security testers who need to explain scanner findings. For the headers you should be sending today and how to roll them out, see the Security Headers Guide; this page goes deeper on what to remove. Browser behaviour was checked against MDN and vendor policy pages in November 2026 and changes over time, so confirm against the current compatibility data before acting.

Key takeaways

  • X-XSS-Protection should be 0 or absent. MDN warns the header can create XSS in otherwise safe sites, and OWASP says do not set it or explicitly turn it off; Content-Security-Policy is the replacement.
  • Expect-CT does nothing useful now. Chromium, the only engine that implemented it, deprecated it from version 107 because Certificate Transparency is enforced by default for publicly trusted certificates.
  • HPKP is gone and was dangerous. Firefox 72 silently ignores Public-Key-Pins; the header's own RFC describes hostile pinning and site bricking, so remove both pinning headers from production.
  • Feature-Policy became Permissions-Policy. The name and the syntax both changed, so a renamed header with the old value is not a valid policy.
  • Some headers are legacy fallbacks, not mistakes. X-Frame-Options is still widely supported; keep it as a backstop behind CSP frame-ancestors, but drop the obsolete ALLOW-FROM value, which makes browsers ignore the whole header.

Why headers get deprecated

A response header is only as useful as the browser behaviour behind it. Headers are retired for four recurring reasons:

  • The browser feature was removed: the XSS filters in Internet Explorer, Chrome and Safari were heuristic and bypassable, and their removal left X-XSS-Protection with nothing to configure.
  • The protection moved into the platform: Expect-CT let a site opt into Certificate Transparency checks; once browsers required CT for every publicly trusted certificate, the opt-in had no purpose.
  • The control was too risky to operate: HPKP pinned a site to specific public keys for up to the max-age. A lost key or an attacker who got a valid certificate first could make the site unreachable for months.
  • A better design replaced it: Feature-Policy was redesigned as Permissions-Policy using RFC 8941 Structured Fields; X-Frame-Options is being superseded by CSP frame-ancestors, which supports multiple origins.

Stale headers carry three costs. Some actively weaken security (X-XSS-Protection: 1). Some give a false sense of protection in audits (Expect-CT, an invalid Feature-Policy value). All of them add configuration that nobody owns, which is where drift starts.

HeaderStatus (November 2026)ReplacementAction
X-XSS-ProtectionDeprecated, non-standard, not in any specification (MDN)Content-Security-Policy with no 'unsafe-inline' in script-srcRemove, or set X-XSS-Protection: 0
Expect-CTDeprecated; defined in RFC 9163; Chromium only, deprecated from 107Browser-enforced Certificate Transparency plus your own CT log monitoringRemove
Public-Key-PinsObsolete; RFC 7469 (Proposed Standard, 2015); ignored by Firefox from 72CT monitoring, DNS CAA records, short-lived certificatesRemove
Public-Key-Pins-Report-OnlyObsolete, as aboveCT monitoringRemove
Feature-PolicyReplaced; W3C spec "used to be named Feature Policy"Permissions-Policy (and Permissions-Policy-Report-Only for testing)Rewrite in the new syntax, then remove
X-Frame-Options: ALLOW-FROMObsolete value; modern browsers ignore the whole headerCSP frame-ancestors with named originsReplace the value; keep DENY or SAMEORIGIN as fallback
X-Frame-Options (DENY, SAMEORIGIN)Widely supported legacy controlCSP frame-ancestorsKeep as fallback alongside frame-ancestors

X-XSS-Protection

X-XSS-Protection switched on the reflected-XSS filter that Internet Explorer, Chrome and Safari once shipped. MDN now lists it as deprecated and non-standard and warns that it "can create XSS vulnerabilities in otherwise safe websites". The mechanism is the filter itself: an attacker places a string in a query parameter that matches a legitimate inline script, the filter treats the real script as an injection and strips or ignores it, and the page runs in a state the developer never intended. MDN's example disables a production flag so debug code runs. With mode=block, a framable page can leak information through a side channel.

ValueEffect when a filter existedAssessment today
0Disables filteringSafe choice if a scanner or policy demands the header
1Sanitises the suspected injectionThe filter-abuse case above; do not send
1; mode=blockBlocks rendering on detectionSide-channel risk if framable; no benefit in current browsers
1; report=<uri>Chromium only, sanitise and reportDo not send

What to do: the OWASP HTTP Headers Cheat Sheet says "Do not set this header or explicitly turn it off" and gives X-XSS-Protection: 0. Choose removal when you control the whole stack; choose 0 when an upstream component (an older framework default, a hosting control panel, a load balancer template) might inject 1; mode=block and you need a value that wins. The real control is a Content-Security-Policy that disallows inline script, backed by output encoding. See the Content Security Policy Guide and the Cross-Site Scripting (XSS) Prevention Guide.

Expect-CT

Expect-CT (RFC 9163) let a site ask browsers to check that its certificate was logged in Certificate Transparency and to report or refuse connections that were not. MDN records that only Chromium implemented it and that Chromium deprecated it from version 107 because CT is now enforced by default. Directives were max-age (required), enforce and report-uri, and the header was ignored over plain HTTP.

The enforcement it opted into is now universal for publicly trusted certificates:

  • Chrome: the Chrome CT policy states that in CT-enforcing Chrome "all publicly-trusted TLS certificates are required to be CT Compliant to successfully validate". Certificates valid for up to 180 days need embedded SCTs from at least two distinct logs, longer ones three, with at least two log operators. Enforcement stops on an installation that has gone 70 days or more without security updates or a fresh log list, which is one more reason to keep browsers patched.
  • Apple platforms: Apple's CT policy requires publicly trusted TLS server certificates to carry qualifying SCTs (two distinct logs for 180 days or less, three for 181 to 398 days) or the TLS connection can fail.
  • Private CAs: certificates chaining to a root you added manually are outside public CT enforcement, and MDN notes manually added roots also suppressed Expect-CT. CT was never a control for internal PKI.

What to do: remove the header. Browsers that cached a policy may keep it until its max-age expires, which is harmless while your certificates remain CT compliant. What Expect-CT reporting gave you, an alert about unexpected certificates, now comes from watching the logs yourself. See the Certificate Transparency Guide and the Certificate Transparency Monitoring Guide for Web Teams.

HTTP Public Key Pinning (HPKP)

RFC 7469 (Proposed Standard, April 2015) defined Public-Key-Pins and Public-Key-Pins-Report-Only. A site sent one or more pin-sha256 values (base64 SHA-256 hashes of a Subject Public Key Info), a max-age, and optionally includeSubDomains and report-uri. The browser then refused any future certificate chain that did not contain a pinned key until max-age expired.

The RFC's own security considerations explain why it failed in practice:

  • Bricking: an operator who lost its pinned keys, or rotated CA without a matching backup pin, made the site unreachable for returning visitors until max-age ran out. The spec required a backup pin for this reason and advised starting with report-only and short max-age values.
  • Hostile pinning: an attacker who briefly obtained a valid certificate for the domain could send a header pinning their own keys, denying service to the real site for up to the maximum max-age.
  • Subdomain conflicts: overlapping parent and subdomain policies with includeSubDomains could make valid subdomain certificates fail depending on header order.

Firefox 72 release notes state that support was dropped "because of the low adoption rate and interoperability risk" and that both headers "are now silently ignored". MDN lists the feature as obsolete.

What to do: remove both headers. Replace the intent with controls that cannot lock users out: DNS CAA records to restrict which CAs may issue for your domains, CT log monitoring to detect any certificate that is issued, and short certificate lifetimes with automated renewal. Pinning inside your own mobile or desktop clients is a separate decision with its own failure modes; see the Certificate Pinning guide before adopting it.

Feature-Policy to Permissions-Policy

The W3C Permissions Policy specification (Working Draft dated 26 October 2026, Web Application Security Working Group) says it "used to be named Feature Policy". The header was renamed and its value redefined as an RFC 8941 Structured Fields dictionary. A Feature-Policy value pasted into a Permissions-Policy header is not valid syntax, so a straight rename of the header name is a common silent failure.

IntentOld Feature-Policy stylePermissions-Policy
Disable camera, microphone and geolocation everywherecamera 'none'; microphone 'none'; geolocation 'none'camera=(), microphone=(), geolocation=()
Allow geolocation for this origin onlygeolocation 'self'geolocation=(self)
Allow this origin and one partnergeolocation 'self' https://a.example.comgeolocation=(self "https://a.example.com")
Report without enforcingNo equivalentPermissions-Policy-Report-Only with a report-to parameter and a Reporting-Endpoints header
  • Delimiters: directives are comma-separated in the header; origins inside an allowlist are space-separated and quoted. () means disabled everywhere, * means any origin and must stand alone.
  • iframes: the allow attribute on an iframe keeps a semicolon-separated format and can only grant features within the maximum the header sets.
  • Support: MDN marks Permissions-Policy as limited availability, so treat it as defence in depth for the browsers that enforce it, not as a guarantee.

What to do: inventory the features your pages genuinely use, write a Permissions-Policy that disables everything else (the OWASP cheat sheet example is geolocation=(), camera=(), microphone=()), test it with the report-only header, then delete Feature-Policy. Sending both during a transition is acceptable as long as they express the same policy.

Others to review (X-Frame-Options vs frame-ancestors)

X-Frame-Options is not deprecated in the same way: MDN lists it as widely available. It has two usable values, DENY and SAMEORIGIN. The third, ALLOW-FROM origin, is obsolete, and MDN warns that modern browsers ignore the header entirely when they see it, which leaves the page framable. CSP frame-ancestors is the more capable control (it accepts a list of origins). Neither works in a <meta> tag. See the Clickjacking Guide.

Other headers worth a clean-up pass at the same time:

  • Server, X-Powered-By, X-AspNet-Version: OWASP advises removing them or setting non-informative values; they disclose product and version detail without benefit.
  • X-DNS-Prefetch-Control: OWASP suggests off where you do not control the links on your pages; otherwise it is optional.
  • report-uri in CSP: newer deployments pair the report-to directive with a Reporting-Endpoints header; keep report-uri only while you still need it for older browsers.

What scanners still flag

Scanners and graders lag browsers, and testers need to explain findings rather than paste them. The common cases:

FindingTypical tool wordingCorrect response
Missing X-XSS-Protection"XSS protection header not set"Informational at most. Add 0 if the rule cannot be suppressed; confirm a CSP exists
X-XSS-Protection: 1; mode=block presentOften reported as goodChange to 0 or remove; cite MDN and OWASP
Missing Expect-CTOlder rule setsFalse positive; do not add the header
Missing Feature-PolicyOlder rule setsSend Permissions-Policy instead
Missing X-Frame-Options"Clickjacking"Satisfied by CSP frame-ancestors; add XFO as fallback
Public-Key-Pins presentSometimes reported as goodRemove

Rollout:

  1. Capture the current headers on representative URLs, including error pages, redirects, API responses and static assets, from the edge and from the origin, so you know which layer adds each header.
  2. Find every place headers are set: application middleware, web server config, CDN or WAF response rules, ingress annotations and platform defaults. A header removed in one layer often reappears from another.
  3. Deploy Permissions-Policy-Report-Only and confirm CSP frame-ancestors before removing their legacy counterparts.
  4. Remove Expect-CT and the pinning headers, and set or remove X-XSS-Protection, in a staging environment, then production.
  5. Verify with a header check against the same URL set and update the scanner policy so the obsolete rules stop reopening tickets.
  6. Rollback is a config revert; none of these removals affects functionality except Permissions-Policy, which is why it goes through report-only first.

Metrics: share of production hostnames sending any obsolete header (target zero); share sending X-XSS-Protection with a value other than 0; Permissions-Policy-Report-Only violations per day during the trial; scanner findings closed as "obsolete rule" versus fixed; hostnames with frame-ancestors set.

Framework mapping

FrameworkReferenceRelevance
OWASP ASVS 5.0V3.4.3, V3.4.6CSP present and frame-ancestors on every response: the replacements for X-XSS-Protection and X-Frame-Options
NIST SP 800-53 Rev. 5CM-6, CM-7Configuration settings and least functionality: removing unowned, obsolete configuration
NIST SP 800-53 Rev. 5SC-8Transmission confidentiality and integrity, which CT and certificate controls support
NIST CSF 2.0PR.PS-01Configuration management practices established and applied

Practitioner checklist

  • List every response header on production hostnames, including error and redirect responses, and record which layer sets it.
  • Remove X-XSS-Protection or set it to 0 everywhere; never send 1 or 1; mode=block.
  • Confirm a CSP that disallows inline script is in place before closing any XSS header finding.
  • Remove Expect-CT and set up CT log monitoring for your domains.
  • Remove Public-Key-Pins and Public-Key-Pins-Report-Only; publish CAA records for your domains.
  • Rewrite Feature-Policy as Permissions-Policy in Structured Fields syntax, test with the report-only header, then delete the old header.
  • Replace any X-Frame-Options ALLOW-FROM with CSP frame-ancestors and keep DENY or SAMEORIGIN as a fallback.
  • Strip Server, X-Powered-By and X-AspNet-Version detail.
  • Update scanner rule sets so obsolete-header findings are suppressed with a documented rationale.

Standards and references

Related NHI Mgmt Group resources: Security Headers Guide · Content Security Policy Guide · Certificate Transparency Guide · HSTS and HSTS Preload · Clickjacking Guide

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.