# Missing anti-clickjacking header (X-Frame-Options): is it real, how to fix it, what to tell the customer

By Vadim Nareyko, founder, Arviser. Published 2026-12-01 · Updated 2026-12-01 · Last reviewed 2026-12-01

## Facts

- Scanner finding: KB-F-0008 · Web and API
- Also known as: Missing Anti-clickjacking Header, Multiple X-Frame-Options Header Entries, X-Frame-Options Defined via META (Non-compliant with Spec), X-Frame-Options Setting Malformed, Web Application Potentially Vulnerable to Clickjacking, Missing or Permissive Content-Security-Policy frame-ancestors HTTP Response Header, Missing or Permissive X-Frame-Options HTTP Response Header, Frameable response (potential Clickjacking), Content security policy: allows clickjacking
- Tool IDs: ZAP [10020](https://www.zaproxy.org/docs/alerts/10020/) "Anti-clickjacking Header": [10020-1](https://www.zaproxy.org/docs/alerts/10020-1/) "Missing Anti-clickjacking Header", [10020-2](https://www.zaproxy.org/docs/alerts/10020-2/) "Multiple X-Frame-Options Header Entries", [10020-3](https://www.zaproxy.org/docs/alerts/10020-3/) "X-Frame-Options Defined via META (Non-compliant with Spec)", [10020-4](https://www.zaproxy.org/docs/alerts/10020-4/) "X-Frame-Options Setting Malformed"; related ZAP [10055-13](https://www.zaproxy.org/docs/alerts/10055-13/) "CSP: Failure to Define Directive with No Fallback"; Nessus [85582](https://www.tenable.com/plugins/nessus/85582) "Web Application Potentially Vulnerable to Clickjacking", [50344](https://www.tenable.com/plugins/nessus/50344) "Missing or Permissive Content-Security-Policy frame-ancestors HTTP Response Header", [50345](https://www.tenable.com/plugins/nessus/50345) "Missing or Permissive X-Frame-Options HTTP Response Header"; nuclei [`http-missing-security-headers`](https://github.com/projectdiscovery/nuclei-templates/blob/eb2824963c8aebdf147743042fedeee2b0416709/http/misconfiguration/http-missing-security-headers.yaml), matcher `x-frame-options`; Burp [0x005009a0](https://portswigger.net/kb/issues/005009a0_frameable-response-potential-clickjacking) "Frameable response (potential Clickjacking)" and [0x00200507](https://portswigger.net/kb/issues/00200507_content-security-policy-allows-clickjacking) "Content security policy: allows clickjacking"
- Standard: CWE-1021, as ZAP cites it; the [HTML Standard](https://html.spec.whatwg.org/multipage/speculative-loading.html#the-x-frame-options-header) for `X-Frame-Options`, which supersedes RFC 7034; [CSP Level 3](https://www.w3.org/TR/CSP3/#directive-frame-ancestors) for `frame-ancestors`
- Lab: [scanner-findings-b3](https://github.com/nareyko/arviser-labs/tree/b94caf9730feeb1a2b70b4bdad3c52c2e1653ab3/scanner-findings-b3), runs 13 to 15: nginx 1.30.8, Apache httpd 2.4.71, Express 5.3.0, helmet 8.3.0, images pinned by digest
- Test: [`tests/frame-options.sh url...`](https://github.com/nareyko/arviser-labs/blob/b94caf9730feeb1a2b70b4bdad3c52c2e1653ab3/scanner-findings-b3/tests/frame-options.sh), answers FINDING or COULD NOT TELL

## Short answer

The finding (ZAP 10020; Nessus 85582, 50344, 50345; nuclei `http-missing-security-headers`; Burp 0x005009a0, 0x00200507) says an HTML page did not limit which sites may frame it. It is real unless the page sends a `frame-ancestors` that limits framing (`'self'`, `'none'` or named sites, not `*` or `https:`) or, without `frame-ancestors`, exactly one `X-Frame-Options` value, `DENY` or `SAMEORIGIN` (repeats count as one; several values with DENY, SAMEORIGIN or ALLOWALL block every frame). A wildcard on a shared domain (`https://*.hosting.example`) lets every site there frame the page.

## 1. What the scanner saw

- **ZAP 10020** is passive. At the default threshold it reads only HTML responses with a body, and skips redirects, 4xx and 5xx. If a `Content-Security-Policy` header contains the text `frame-ancestors`, with any value, the rule stops there. Otherwise: no `X-Frame-Options` raises 10020-1 (Medium), a value without the words `deny` or `sameorigin` raises 10020-4, more than one header line raises 10020-2, and an `X-Frame-Options` meta tag raises 10020-3. At the Low threshold it also reads redirects, errors and other text content types, and checks `X-Frame-Options` next to `frame-ancestors` at Low risk ([rule source at commit afb5113e](https://github.com/zaproxy/zap-extensions/blob/afb5113e389ef1d6ff66e03bbf63d2a0b4e6c088/addOns/pscanrules/src/main/java/org/zaproxy/zap/extension/pscanrules/AntiClickjackingScanRule.java)).

- **ZAP 10055-13** comes from the separate CSP rule. It lists `frame-ancestors` and `form-action` as directives that do not fall back to `default-src`, and names whichever of them a policy leaves out or opens with a wildcard ([CSP rule source](https://github.com/zaproxy/zap-extensions/blob/afb5113e389ef1d6ff66e03bbf63d2a0b4e6c088/addOns/pscanrules/src/main/java/org/zaproxy/zap/extension/pscanrules/ContentSecurityPolicyScanRule.java)). The alert's "other info" field says which.

- **nuclei** `http-missing-security-headers` sends one GET and may follow up to three redirects. Its `x-frame-options` matcher fires when the text `x-frame-options` appears nowhere in the response headers and the status is not 301 or 302. It never reads `Content-Security-Policy` for this matcher, so a page that relies on `frame-ancestors` alone is reported, and any value, even `ALLOW-FROM`, silences it ([template at commit eb28249](https://github.com/projectdiscovery/nuclei-templates/blob/eb2824963c8aebdf147743042fedeee2b0416709/http/misconfiguration/http-missing-security-headers.yaml)).

- **Nessus** 85582 is rated Medium and says the server does not set either header "in all content responses"; it depends on Tenable's crawler (`webmirror.nasl`). 50344 and 50345 are Info and cover a header that is missing or permissive ([85582](https://www.tenable.com/plugins/nessus/85582), [50344](https://www.tenable.com/plugins/nessus/50344), [50345](https://www.tenable.com/plugins/nessus/50345)). Tenable's code is not public.

- **Burp** rates both of its issues Information ([0x005009a0](https://portswigger.net/kb/issues/005009a0_frameable-response-potential-clickjacking), [0x00200507](https://portswigger.net/kb/issues/00200507_content-security-policy-allows-clickjacking)).

## 2. Is it real on your system?

```sh
curl -sS -D - -o /dev/null https://app.example.com/ | grep -iE '^(HTTP/|x-frame-options|content-security-policy)'
```

Run it on the URL from the report and on one page behind sign-in, with your session cookie (`-b 'session=...'`). The finding is real when the output shows any of these, read the way the [HTML Standard](https://html.spec.whatwg.org/multipage/speculative-loading.html#the-x-frame-options-header) and [CSP 3](https://www.w3.org/TR/CSP3/#directive-frame-ancestors) tell browsers to read it:

- neither header;

- a `frame-ancestors` whose every list allows any site (`*`, or `http:`, `https:`, `ws:`, `wss:` bare or as `https://*`; other schemes such as `chrome-extension:` do not); browsers then ignore `X-Frame-Options`, even `DENY`;

- no `frame-ancestors`, and an `X-Frame-Options` whose values, lower-cased with repeats counted once, are one value other than `deny` or `sameorigin` (`ALLOW-FROM` included), or several values none of which is `deny`, `sameorigin` or `allowall`. The HTML Standard treats both as no header. Several different values that include one of those three are not this finding: browsers then block every frame, your own included.

On our nginx with defaults the command printed `HTTP/1.1 200 OK` and nothing else. With the headers added it also printed `X-Frame-Options: SAMEORIGIN` and `Content-Security-Policy: frame-ancestors 'self'`.

What a header in the output does not show, each seen in our lab:

- **Other routes.** Our nginx sent both headers on `/` and none on `/app/`, which had an `add_header Cache-Control` of its own. A check of `/` alone shows the headers.

- **Signed-in pages.** Our sign-in page sent both headers; the account page behind it sent none. Without the cookie, `/account` is only a redirect to `/login`, so a scanner and a plain `curl` both read the sign-in page.

- **The page behind a redirect.** Our `http://` URL redirected to HTTPS with `X-Frame-Options: DENY` on the redirect, and the HTTPS page had no header. `curl -sI` on the reported URL shows `DENY`. The same happened with `/` redirecting to `/home/`.

- **Error pages.** A mistyped URL that returns 404 with the header shows `DENY`; the real page returned 200 without it.

- **`DENY` next to `frame-ancestors *`.** The grep shows `X-Frame-Options: DENY`, and ZAP 10020 stays silent because the CSP mentions `frame-ancestors`; only ZAP 10055-13 names the directive. Browsers follow the CSP.

- **`default-src`.** CSP 3: "frame-ancestors will not fall back to the default-src directive's value". Our target with `default-src 'self'` and nothing else raised ZAP 10020-1.

- **Meta tags.** MDN: an `X-Frame-Options` meta tag "has no effect" ([MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/X-Frame-Options)). CSP 3: "The frame-ancestors directive MUST be ignored when contained in a policy declared via a meta element."

- **Report-only.** `Content-Security-Policy-Report-Only` is not enforced; its `frame-ancestors` limits nothing.

- **Two `frame-ancestors` in one policy.** `frame-ancestors *; frame-ancestors 'none'` is read as `*`: CSP 3 keeps the first directive of a name and skips the rest ([CSP 3, parsing](https://www.w3.org/TR/CSP3/#parse-serialized-policy)). ZAP 10020 stays silent on it.

## 3. How serious it is for you

Our view: usually Low, sometimes Medium, and cheap to address. Clickjacking needs three things at once: a page where a click or two completes an action, the visitor signed in inside the frame, and a page of the attacker's that the visitor opens. Settings toggles, "delete", "approve", "connect account" and OAuth consent screens are the pages that matter.

Check your session cookie. MDN says a `Lax` cookie is not sent for "navigations inside `<iframe>` elements" from another site ([MDN `Set-Cookie`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Set-Cookie)), and `Strict` is narrower. In that case the framed page shows the visitor signed out. A session cookie with `SameSite=None`, which embedded apps and some single sign-on setups need, keeps the full risk, and so do actions that work without a session. MDN: "Some browsers use Lax as the default value if SameSite is not specified"; others do not.

Marketing pages, documentation and public pages with no actions carry little risk. Customers still ask for the header on every page.

Accepted risk is reasonable for a page built to be embedded (a widget, a booking form, a page inside a partner's portal), with `frame-ancestors` naming the sites that embed it.

## 4. Fix it on your platform

Each section quotes the vendor's documentation. Warnings marked "our warning" are ours. Lines marked "lab-tested" ran in our lab exactly as printed.

Our warnings, for every platform:

- List the sites that frame your pages on purpose before adding anything: a partner portal, an LMS, a CRM, a preview pane in your admin on another subdomain.

- `SAMEORIGIN` means the same scheme, host and port; CSP `'self'` means the same, and also accepts an HTTPS page framing its HTTP version. Neither covers your other subdomains: a page on `app.example.com` in a frame on `www.example.com` stops loading with either ([HTML Standard](https://html.spec.whatwg.org/multipage/speculative-loading.html#the-x-frame-options-header), [CSP 3](https://www.w3.org/TR/CSP3/#match-url-to-source-expression)).

- Sites that must frame you go into `frame-ancestors`, for example `frame-ancestors 'self' https://partner.example.com`; `X-Frame-Options` cannot name them. `DENY` stops your own frames too.

- Set the headers in one layer: a second `frame-ancestors` from a proxy does not replace the app's, and a frame has to be allowed by both.

### nginx (lab-tested on 1.30.8)

nginx documentation ([`add_header`](https://nginx.org/en/docs/http/ngx_http_headers_module.html#add_header)):

> Adds the specified field to a response header provided that the response code equals 200, 201 (1.3.10), 204, 206, 301, 302, 303, 304, 307 (1.1.16, 1.0.13), or 308 (1.13.0).
>
> These directives are inherited from the previous configuration level if and only if there are no add_header directives defined on the current level.
>
> If the always parameter is specified (1.7.5), the header field will be added regardless of the response code.

Lab-tested, in the `server` block:

```nginx
add_header X-Frame-Options "SAMEORIGIN" always;
add_header Content-Security-Policy "frame-ancestors 'self'" always;
```

For `add_header_inherit` (nginx 1.29.3 and later) the documentation says: "The merge parameter enables appending values from the previous level to the values defined at the current level." Lab-tested: `add_header_inherit merge;` in the `server` block kept both headers on a `location` with its own `add_header`. For proxied apps ([`proxy_hide_header`](https://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_hide_header)): "The proxy_hide_header directive sets additional fields that will not be passed." Lab-tested: `proxy_hide_header X-Frame-Options;` next to `proxy_pass`.

Our warnings:

- A `location` with any `add_header` of its own drops both lines. In our lab `/app/` had no frame header.

- The same rule works one level up: the two lines in `server` stop `add_header` lines set at `http` level, such as `Strict-Transport-Security`, from being sent by that server. In our lab an `http`-level `Strict-Transport-Security` reached the server without `add_header` lines and not the one with the two frame lines. Repeat the `http`-level lines in the `server` block, or use `add_header_inherit merge;` (1.29.3 and later), which in our lab brought it back on `/` and `/app/`.

- In front of an app that sends `X-Frame-Options`, nginx's line makes a second copy unless the app's is hidden; our nginx sent two. Browsers read two equal values as one, but ZAP reports the second line as 10020-2, and two different values block every frame.

- In front of an app with its own CSP, nginx's line is a second policy. Our app listed `https://partner.example.test`; with nginx's `frame-ancestors 'self'` the response carried both lists, and under CSP 3 the partner can no longer frame the page (we did not try it in a browser). Put `frame-ancestors` in one layer, or give both lists the same sites.

- Run `nginx -t` before reloading; the documentation: "test the configuration file" ([command line](https://nginx.org/en/docs/switches.html)).

### Apache httpd (lab-tested on 2.4.71)

mod_headers documentation ([`Header`](https://httpd.apache.org/docs/2.4/mod/mod_headers.html#header)):

> The optional condition argument determines which internal table of responses headers this directive will operate against: onsuccess (default, can be omitted) or always.
>
> always is not a superset of onsuccess with respect to existing headers
>
> set: The response header is set, replacing any previous header with this name.
>
> unset: The response header of this name is removed, if it exists.

Lab-tested, in the virtual host:

```apache
Header onsuccess unset X-Frame-Options
Header always set X-Frame-Options "SAMEORIGIN"
Header always set Content-Security-Policy "frame-ancestors 'self'"
```

Our warnings:

- `Header always set X-Frame-Options` alone, in front of a proxied app that sends the header, gave two copies in our lab (ZAP: 10020-2). The `onsuccess unset` line removed the app's copy.

- In front of an app with its own CSP, `Header always set Content-Security-Policy` added a second policy next to the app's, with the same partner effect as on nginx. `Header set Content-Security-Policy` without `always` replaced the app's whole policy: the response carried only `frame-ancestors 'self'`, and the app's `script-src`, `object-src` and other directives were gone. Do not use that form in front of an app that sends a CSP.

- The documentation says headers from a CGI script or `mod_proxy_fcgi` (PHP-FPM) "are in the table corresponding to always". We did not run that case.

- The lines need mod_headers. On Debian and Ubuntu, "a2enmod is a script that enables the specified module" ([`a2enmod`](https://manpages.debian.org/trixie/apache2/a2enmod.8.en.html)): `a2enmod headers`. Then `apachectl configtest`, which the documentation describes as "Run a configuration file syntax test." ([apachectl](https://httpd.apache.org/docs/2.4/programs/apachectl.html)).

### Express and Node.js (lab-tested on Express 5.3.0, helmet 8.3.0)

helmet README ([helmet](https://github.com/helmetjs/helmet#readme)): `app.use(helmet());` "This will set 13 HTTP response headers in your app." Among them the default `X-Frame-Options: SAMEORIGIN` and this default policy:

> default-src 'self'; base-uri 'self'; font-src 'self' https: data:; form-action 'self'; frame-ancestors 'self'; img-src 'self' data:; object-src 'none'; script-src 'self'; script-src-attr 'none'; style-src 'self' https: 'unsafe-inline'; upgrade-insecure-requests

Lab-tested (it needs the `helmet` package; the README imports it with `import helmet from "helmet";`, our CommonJS app used `require('helmet')`):

```js
app.use(helmet());
```

The raw header from our `helmet()` target carried that policy and `X-Frame-Options: SAMEORIGIN`. The README: "These directives are merged into a default policy". Lab-tested, to let one partner frame the app:

```js
app.use(
  helmet({
    contentSecurityPolicy: {
      directives: { frameAncestors: ["'self'", 'https://partner.example.test'] },
    },
  }),
);
```

Our warnings: `helmet()` changes more than framing. Try it on staging first.

- The default policy's `script-src 'self'` limits scripts to your own origin, so scripts loaded from other origins stop running; the other default directives do the same for styles, images, fonts and forms.

- `Cross-Origin-Opener-Policy: same-origin` (README default) can break sign-in and payment popups that talk back through `window.opener`.

- `Cross-Origin-Resource-Policy: same-origin` (README: it "blocks others from loading your resources cross-origin in some cases") can stop other sites loading your images and files.

- `Strict-Transport-Security: max-age=31536000; includeSubDomains` (README default): once a browser has received it over HTTPS, it refuses plain HTTP on every subdomain for a year, which breaks HTTP-only subdomains.

- The default policy's `upgrade-insecure-requests` makes browsers fetch `http:` images, scripts and styles over HTTPS, so files served only over plain HTTP stop loading.

- `Referrer-Policy: no-referrer` (README default) removes the `Referer` header that some analytics, partner and payment flows read.

The README also gives each header as standalone middleware, for example "You can use this as standalone middleware with `app.use(helmet.xFrameOptions())`" (from the README, not run by us). With `helmet({ contentSecurityPolicy: false })`, which the README gives to disable the CSP header, the response from our app carried `X-Frame-Options: SAMEORIGIN` and no `frame-ancestors`.

### Django and Rails (from documentation, not run by us)

- **Django** ([clickjacking protection](https://docs.djangoproject.com/en/stable/ref/clickjacking/)): "This middleware is enabled in the settings file generated by startproject." and "By default, the middleware will set the X-Frame-Options header to DENY for every outgoing HttpResponse." The setting `X_FRAME_OPTIONS = "SAMEORIGIN"` changes the value.

- **Rails** ([security guide](https://guides.rubyonrails.org/security.html)): `X-Frame-Options` "is set to SAMEORIGIN by default", and `config.action_dispatch.default_headers["X-Frame-Options"] = "DENY"` in `config/application.rb` overrides it.

Our warning: a finding on either usually means the middleware or default header was removed, a view was exempted, or a proxy in front drops the header.

### IIS (from documentation, not run by us)

Microsoft's sample ([IIS custom headers](https://learn.microsoft.com/en-us/iis/configuration/system.webserver/httpprotocol/customheaders/)): "The following configuration sample sets a custom HTTP header and value", with `<add name="X-Custom-Name" value="MyCustomValue" />` under `<system.webServer><httpProtocol><customHeaders>`. Our warning: put `X-Frame-Options` and `SAMEORIGIN` in place of the sample's name and value; if the application sets the header too, remove one source, since we did not check how IIS combines them.

### Cloudflare (from documentation, not run by us)

Cloudflare ([response header modification](https://developers.cloudflare.com/rules/transform/response-header-modification/)): "Add operations append a new header without removing existing headers of the same name, while Set operations replace all existing headers of that name." Our warning: Set for `X-Frame-Options` avoids a second copy; Set for `Content-Security-Policy` replaces the origin's whole policy, and Add makes a second policy.

### AWS (from documentation, not run by us)

- **CloudFront** ([response headers policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/understanding-response-headers-policies.html)): for `X-Frame-Options`, "Valid values for this setting are DENY or SAMEORIGIN", and each security header has an origin override setting "that determines how CloudFront behaves when the response from the origin contains that header". The managed `SecurityHeadersPolicy` lists `X-Frame-Options SAMEORIGIN` with override "No" ([managed policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-response-headers-policies.html)).

- **Application Load Balancer:** listener attribute `routing.http.response.x_frame_options.header_value` ([ListenerAttribute](https://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_ListenerAttribute.html)); "If the response from target includes the HTTP response header, the load balancer updates the header value to be the configured value." ([ALB header modification](https://docs.aws.amazon.com/elasticloadbalancing/latest/application/header-modification.html)).

Our warning: with override "No", an origin that sends its own value keeps it.

### Vercel and Netlify (from documentation, not run by us)

- **Vercel** ([vercel.json](https://vercel.com/docs/project-configuration/vercel-json)): the example sets `{ "key": "X-Frame-Options", "value": "DENY" }` for `"source": "/(.*)"`.

- **Netlify** ([custom headers](https://docs.netlify.com/manage/routing/headers/)): "Here's an example of setting the X-Frame-Options header for all pages on your site: /* X-Frame-Options: DENY". Also: "If you are proxying content to your site or dealing with a URL handled by a function or edge function such as a server-side rendered (SSR) page, custom headers won't be applied to that content."

Our warning: both examples use `DENY`, which stops your own frames; use `SAMEORIGIN` if you frame your own pages.

## 5. What to tell the customer

Example wording, adapt to what is true.

**Headers added:**
> Thank you for the report. Pages on app.example.com now send `Content-Security-Policy: frame-ancestors 'self'` and `X-Frame-Options: SAMEORIGIN`. Attached are the response headers for <the URLs in your report> and for a signed-in page, captured on <date>.

**Not a page:**
> The URL in the report returns JSON to our own front end (or: a redirect to <URL>), not a page that a browser shows in a frame. The headers of <the page it leads to> are attached, <date>.

**Embedded on purpose:**
> <Page> is built to be embedded by <partner>. It sends `frame-ancestors 'self' https://partner.example.com`. We review the list on <date>.

Evidence to attach: `curl -sS -D -` output for the URLs in the report and for one signed-in page, with the date.

## 6. Test: finding or could not tell

Our script [`frame-options.sh`](https://github.com/nareyko/arviser-labs/blob/b94caf9730feeb1a2b70b4bdad3c52c2e1653ab3/scanner-findings-b3/tests/frame-options.sh), run as `sh frame-options.sh url...`, requests each listed URL once and reads the headers the way the HTML Standard and CSP 3 tell a browser to. It answers only two things:

- **FINDING (exit 1):** a listed page was fetched, and it carried no frame header; or a `frame-ancestors` whose every list allows any site (`*`, a host of `*`, or `http:`, `https:`, `ws:` or `wss:`, bare or with a host of `*`; other schemes count as a list); or, without `frame-ancestors`, an `X-Frame-Options` whose values, lower-cased and with repeats counted once, are one value other than `deny` or `sameorigin`, or several values none of which is `deny`, `sameorigin` or `allowall`. Several different values that include one of those give COULD NOT TELL, with a note that browsers then block every frame. Several CSP headers and comma-joined policies count as separate policies, a second `frame-ancestors` in one policy is ignored, folded header lines are joined, and report-only policies and meta tags do not count.

- **COULD NOT TELL (exit 2):** everything else, including no finding. It prints what each response carried, for example "the response carried frame-ancestors (policy 1): 'self'", and notes such as a host wildcard (`https://*.example.com`) that lets every subdomain under it frame the page. It also answers COULD NOT TELL for no HTTP answer, a status other than 2xx, a 400 (as `http://` sent to a TLS port gets), a redirect to a URL that is not listed (query string included), a redirect to itself, a redirect chain that loops or never reaches a page that was read, a response that is not HTML, a URL that is not `http://` or `https://`, and a missing tool.

There is no exit 0. The rule was written before the record runs.

- **Run it on your host:** `sh frame-options.sh https://app.example.com/ https://app.example.com/login https://app.example.com/settings`, one URL per route group and per proxied app. For pages behind sign-in, `COOKIE='session=...' sh frame-options.sh https://app.example.com/settings`; a COOKIE value without `=` answers COULD NOT TELL, since curl would read it as a file name. It needs a POSIX shell, `curl`, `awk`, `grep`, `sed`, `tr`, `head`, `tail` and `mktemp`, and answers COULD NOT TELL if one is missing. It ignores certificate errors (`-k`) and proxy variables. We ran it with GNU tools (Debian) and with BusyBox (Alpine), with the same results.

- **What it cannot see:** URLs and route groups you did not list (our nginx case that dropped the headers on `/app/` gave no finding with only `/` listed); signed-in pages, unless you pass `COOKIE`; a proxy's second policy that locks out a partner, or one that replaced the app's whole CSP (it prints each policy it got); answers that differ by method, user agent or cookie; a host your own list names. It does not run a browser.

## 7. What we ran

Record runs 13 to 15, 2026-11-29: nginx 1.30.8, Apache httpd 2.4.71, Express 5.3.0, helmet 8.3.0, Node.js 22, images pinned by digest. In each run the 61 cases gave the same answer on the GNU and the BusyBox client, and with `curl`, `awk`, `grep`, `sed`, `tail` or `mktemp` removed from PATH the test answered COULD NOT TELL on both. "Could not tell" in the table means the test printed what the response carried and no finding.

| Target | Config | Our test | ZAP 2.17.0 baseline | nuclei 3.11.1 |
| --- | --- | --- | --- | --- |
| nginx 80 | defaults | FINDING: no frame header | 10020-1 | `x-frame-options` |
| nginx 8080 | the printed snippet | could not tell; carried `frame-ancestors 'self'`, `SAMEORIGIN` | no 10020 | none |
| nginx 8081 | headers in `server`, `/app/` with its own `add_header` | FINDING with `/app/` listed; could not tell with `/` alone | run 13: 10020-1 on `/app/`; runs 14 and 15: none | none (requests `/` only) |
| nginx 8082 | same plus `add_header_inherit merge` | could not tell; both headers carried on `/` and `/app/` | not run | not run |
| nginx 8083 | `X-Frame-Options: DENY` and `frame-ancestors *` | FINDING | no 10020; 10055-13 names `frame-ancestors` | none |
| nginx 8084 | `default-src 'self'` only | FINDING | 10020-1, 10055-13 | not run |
| nginx 8085 | `ALLOW-FROM` | FINDING | 10020-4 | none |
| nginx 8086 / 8087 | proxy to an app with XFO, nginx adds one / plus `proxy_hide_header` | could not tell, two equal lines (note) / could not tell, one line | 8086: 10020-2 | not run |
| nginx 8088 | XFO and `frame-ancestors` in meta tags only | FINDING | 10020-1 (on `/app/` too except in run 14), 10020-3 | `x-frame-options` |
| nginx 8089 | `frame-ancestors 'none'` in report-only | FINDING | not run | not run |
| nginx 8090 | `frame-ancestors *; frame-ancestors 'none'` | FINDING (first directive counts) | no 10020; 10055-13 names `frame-ancestors` | not run |
| nginx 8091 | lower-case header names, `FRAME-ANCESTORS 'SELF'`, `x-frame-options` with spaces | could not tell; values printed | not run | not run |
| nginx 8092 / 8093 | two CSP lines / two comma-joined policies, one without a wildcard | could not tell | not run | not run |
| nginx 8094 | `X-Frame-Options: SAMEORIGIN, DENY` in one line | could not tell, with the note that browsers block every frame | no 10020 | none |
| nginx 8095 | `frame-ancestors https:` | FINDING | not run | not run |
| nginx 8096 | `frame-ancestors self` (unquoted) | could not tell, with a note that it names a host called `self` | not run | not run |
| nginx 8097 | `/` redirects to `/home/`, header on the redirect only | redirect alone: could not tell (target not listed); with `/home/` listed: FINDING | runs 13 and 15: 10020-1 under `/` and `/home/`; run 14: none | `x-frame-options` on `/home/` |
| nginx 8098 | `http://` redirects to HTTPS 8444, header on the redirect only | redirect alone: could not tell; with the HTTPS URL listed: FINDING | not run | none; see below |
| nginx 8099 | header on 404 pages only | 404 URL: could not tell; `/`: FINDING | 10020-1 on `/` | `x-frame-options` |
| nginx 8100 | proxy adds `frame-ancestors 'self'`, app lists a partner | could not tell; prints both policies and the note | not run | not run |
| nginx 8101 / 8102 | `/` redirects to itself / `/a` and `/b` redirect to each other | could not tell: redirects to itself / the redirect chain loops | not run | not run |
| nginx 8104 / 8105 | `frame-ancestors https://*.example.com` / `*.com` | could not tell, with the host-wildcard note | not run | not run |
| nginx 8106 / 8107 | `X-Frame-Options: ALLOWALL-X, INVALID` / `sameorigin` and `SAMEORIGIN` lines | FINDING / could not tell (one value after lower-casing) | not run | not run |
| raw server 8086 | `/page` redirects to `?lang=en`, that page has no header | redirect alone: could not tell; with `/page?lang=en` listed: FINDING | not run | not run |
| nginx 8108 / 8109 / 8110 | `frame-ancestors 'self' chrome-extension:` / `chrome-extension://*` / `wss:` | could not tell / could not tell / FINDING | not run | not run |
| nginx 8443 / 8444 | HTTPS with the snippet / without a header | could not tell / FINDING | not run | not run |
| raw server 8085 | `X-Frame-Options: DENY`, CSP folded over two lines with `frame-ancestors *` | FINDING (lines joined) | not run | not run |
| `http://` to 8443, `https://` to 80, `/data.json` | wrong scheme, wrong scheme, JSON | could not tell in all three | not run | not run |
| Apache, defaults | static page, proxied app with XFO | FINDING on the static page | not run | not run |
| Apache, `Header always set` only | static / proxied app | could not tell / could not tell, two equal XFO lines (note) | 10020-2 on `/app/` | not run |
| Apache, the printed snippet | static and proxied app | could not tell; one XFO, `frame-ancestors 'self'` | not run | not run |
| Apache 8081 / 8082 | app with its own CSP; `always set` / `set` | could not tell; two policies / one policy, the app's gone | not run | not run |
| Express | defaults / `helmet()` / XFO only / partner listed | FINDING / could not tell / could not tell / could not tell | defaults: 10020-1 on `/app/` in all three runs, on `/` in runs 13 and 14 | `helmet()`: none |
| Express sign-in | `/account` alone / with `/login` / with `COOKIE` / `COOKIE` without `=` | could not tell / could not tell (stated limit) / FINDING / could not tell | not run | not run |
| a port that never answers, an SSH port, an unknown host, an `ftp://` URL, no URL | negative cases | could not tell in all five | not run | not run |

The runs were done by Claude Opus 5.5 (agent) on an internal Docker network with no outside access. Expected results were written before each round of runs and are in the lab's [results folder](https://github.com/nareyko/arviser-labs/tree/b94caf9730feeb1a2b70b4bdad3c52c2e1653ab3/scanner-findings-b3/results/2026-11-29) with the raw outputs, image digests and file hashes. Runs 1 to 3 used an earlier version of the test with a pass answer; an independent check rejected that, and they are kept as history, with run 4 (loop message missing), an interrupted run 5, runs 7 to 9, which counted repeated `X-Frame-Options` values as a finding, and runs 10 to 12, which counted every bare scheme in `frame-ancestors` as open to any site.

Surprises kept on record:

- nuclei stayed silent on 8098. A debug run showed one request and the 301 answer: nuclei did not follow the redirect to the other scheme and port, and the matcher skips 301 responses. It did follow the same-port redirect on 8097, and matched 8444 when given that URL.

- ZAP's 10020 varied between runs on the same targets. In runs 13 to 15 the rule filed 10020-1 on 8081 `/app/` only in run 13, on 8097 (under the redirecting `/`, whose answer its log records as 200, and `/home/`) in runs 13 and 15 but not 14, and on the Express defaults page `/` in runs 13 and 14 only. Earlier runs on the same targets varied the same way. We did not find the cause. One baseline scan with no 10020 does not show that the header is there.

- ZAP's CSP rule 10055-13 named `frame-ancestors` in its "other info" field on every CSP that left framing open, including the cases where 10020 is silent (8083, 8090). On the targets with `frame-ancestors 'self'` it still fired, naming only `form-action`.

- The first start of the lab ran the test, but not the scanners: the run script gave Docker a relative folder. It is kept as a smoke folder.

## Related pages

- [HSTS missing (Strict-Transport-Security header not set): is it real, how to fix it, what to tell the customer](/library/findings/hsts-missing)
- [Cookie without Secure or HttpOnly flag: is it real, how to fix it, what to tell the customer](/library/findings/cookie-without-secure-httponly)
- [Server version disclosure (Server, X-Powered-By): is it real, how to fix it, what to tell the customer](/library/findings/server-version-disclosure)

## Sources

- ZAP, alert 10020: https://www.zaproxy.org/docs/alerts/10020/ (accessed 2026-11-29)
- ZAP, alert 10020-1: https://www.zaproxy.org/docs/alerts/10020-1/ (accessed 2026-11-29)
- ZAP, alert 10020-2: https://www.zaproxy.org/docs/alerts/10020-2/ (accessed 2026-11-29)
- ZAP, alert 10020-3: https://www.zaproxy.org/docs/alerts/10020-3/ (accessed 2026-11-29)
- ZAP, alert 10020-4: https://www.zaproxy.org/docs/alerts/10020-4/ (accessed 2026-11-29)
- ZAP, alert 10055-13: https://www.zaproxy.org/docs/alerts/10055-13/ (accessed 2026-11-29)
- ZAP, AntiClickjackingScanRule.java at commit afb5113e (Apache 2.0): https://github.com/zaproxy/zap-extensions/blob/afb5113e389ef1d6ff66e03bbf63d2a0b4e6c088/addOns/pscanrules/src/main/java/org/zaproxy/zap/extension/pscanrules/AntiClickjackingScanRule.java (accessed 2026-11-29)
- ZAP, ContentSecurityPolicyScanRule.java at commit afb5113e (Apache 2.0): https://github.com/zaproxy/zap-extensions/blob/afb5113e389ef1d6ff66e03bbf63d2a0b4e6c088/addOns/pscanrules/src/main/java/org/zaproxy/zap/extension/pscanrules/ContentSecurityPolicyScanRule.java (accessed 2026-11-29)
- Tenable, Nessus plugin 85582: https://www.tenable.com/plugins/nessus/85582 (accessed 2026-11-29)
- Tenable, Nessus plugin 50344: https://www.tenable.com/plugins/nessus/50344 (accessed 2026-11-29)
- Tenable, Nessus plugin 50345: https://www.tenable.com/plugins/nessus/50345 (accessed 2026-11-29)
- ProjectDiscovery, nuclei template http-missing-security-headers.yaml at commit eb28249 (MIT): https://github.com/projectdiscovery/nuclei-templates/blob/eb2824963c8aebdf147743042fedeee2b0416709/http/misconfiguration/http-missing-security-headers.yaml (accessed 2026-11-29)
- PortSwigger, issue 0x005009a0: https://portswigger.net/kb/issues/005009a0_frameable-response-potential-clickjacking (accessed 2026-11-29)
- PortSwigger, issue 0x00200507: https://portswigger.net/kb/issues/00200507_content-security-policy-allows-clickjacking (accessed 2026-11-29)
- WHATWG, HTML Standard, the X-Frame-Options header: https://html.spec.whatwg.org/multipage/speculative-loading.html#the-x-frame-options-header (accessed 2026-11-29)
- W3C, Content Security Policy Level 3: https://www.w3.org/TR/CSP3/ (accessed 2026-11-29)
- IETF, RFC 7034: https://www.rfc-editor.org/rfc/rfc7034 (accessed 2026-11-29)
- MDN, X-Frame-Options: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/X-Frame-Options (accessed 2026-11-29)
- MDN, Set-Cookie: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Set-Cookie (accessed 2026-11-29)
- nginx, add_header and add_header_inherit: https://nginx.org/en/docs/http/ngx_http_headers_module.html (accessed 2026-11-29)
- nginx, proxy_hide_header: https://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_hide_header (accessed 2026-11-29)
- nginx, command-line parameters: https://nginx.org/en/docs/switches.html (accessed 2026-11-29)
- Apache httpd, mod_headers: https://httpd.apache.org/docs/2.4/mod/mod_headers.html (accessed 2026-11-29)
- Apache httpd, apachectl: https://httpd.apache.org/docs/2.4/programs/apachectl.html (accessed 2026-11-29)
- Debian, a2enmod manual page: https://manpages.debian.org/trixie/apache2/a2enmod.8.en.html (accessed 2026-11-29)
- helmet README: https://github.com/helmetjs/helmet#readme (accessed 2026-11-29)
- Django, clickjacking protection: https://docs.djangoproject.com/en/stable/ref/clickjacking/ (accessed 2026-11-29)
- Rails, security guide: https://guides.rubyonrails.org/security.html (accessed 2026-11-29)
- Microsoft, IIS custom headers: https://learn.microsoft.com/en-us/iis/configuration/system.webserver/httpprotocol/customheaders/ (accessed 2026-11-29)
- Cloudflare, response header modification: https://developers.cloudflare.com/rules/transform/response-header-modification/ (accessed 2026-11-29)
- AWS, CloudFront response headers policies: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/understanding-response-headers-policies.html (accessed 2026-11-29)
- AWS, CloudFront managed response headers policies: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-response-headers-policies.html (accessed 2026-11-29)
- AWS, ALB header modification: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/header-modification.html (accessed 2026-11-29)
- AWS, ListenerAttribute API reference: https://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_ListenerAttribute.html (accessed 2026-11-29)
- Vercel, vercel.json: https://vercel.com/docs/project-configuration/vercel-json (accessed 2026-11-29)
- Netlify, custom headers: https://docs.netlify.com/manage/routing/headers/ (accessed 2026-11-29)
- Our lab, arviser-labs at commit b94caf9, scanner-findings-b3: https://github.com/nareyko/arviser-labs/tree/b94caf9730feeb1a2b70b4bdad3c52c2e1653ab3/scanner-findings-b3 (accessed 2026-11-29)
- Our test, frame-options.sh: https://github.com/nareyko/arviser-labs/blob/b94caf9730feeb1a2b70b4bdad3c52c2e1653ab3/scanner-findings-b3/tests/frame-options.sh (accessed 2026-11-29)
- Our lab, runs 13 to 15 of 2026-11-29: raw outputs, image digests and file hashes: https://github.com/nareyko/arviser-labs/tree/b94caf9730feeb1a2b70b4bdad3c52c2e1653ab3/scanner-findings-b3/results/2026-11-29 (accessed 2026-11-29)

## Corrections

No corrections.

How this page was made: Claude Opus 5.5, an AI model, built and ran the lab and wrote this page from the sources listed. Separate AI agents checked the claims and the lab test in four rounds; the page and the test's rule were corrected after the first three, and the fourth, on 1 December 2026, found nothing that had to be fixed. Vadim Nareyko approved the family template and the sample pages on 26 November 2026, from a summary in Russian. This page was not reviewed by Vadim Nareyko. On 28 November 2026 Vadim Nareyko decided that new pages in the family are published after the linters and an independent check, without that review.

Text and data on this page: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/). Code in [our lab](https://github.com/nareyko/arviser-labs/tree/b94caf9730feeb1a2b70b4bdad3c52c2e1653ab3/scanner-findings-b3): [MIT](https://opensource.org/license/mit). Quoted third-party material keeps its own terms.
