webzod
account

Fix the X-Frame-Options value on Caddy

headers.clickjacking.xfo_invalid · effort: minutes

Why it matters

Browsers only honour a single DENY or SAMEORIGIN. ALLOW-FROM or another unknown value is ignored and leaves the page frameable, while conflicting values block all framing, even by your own pages.

The fix

  1. Set the header with the > prefix so it replaces the application's value after the response comes back, then reload.
Caddyfile
header >X-Frame-Options SAMEORIGIN

Read the documentation (opens in a new tab)

Scan your domain to see whether this applies to you.