Security & SEO

    X-Frame-Options / frame-ancestors check

    Confirms clickjacking protection is enabled via X-Frame-Options or the modern CSP frame-ancestors directive.

    Updated 2026-07-10
    1 min read
    x-frame-options
    clickjacking
    security-headers

    Quick answer#

    Lemwatch passes the check if the response sets X-Frame-Options: DENY|SAMEORIGIN OR a CSP with frame-ancestors.

    What it checks#

  1. X-Frame-Options presence and value
  2. CSP frame-ancestors directive (preferred)
  3. Consistency across HTTPS routes
  4. Where to find it in Lemwatch#

    Site details → Security → Headers.

    How to fix#

  5. Add X-Frame-Options: SAMEORIGIN at your web server.
  6. Or better, add frame-ancestors 'self' to your CSP and drop X-Frame-Options.
  7. Test any legitimate iframes still load.
  8. FAQ#

    Which is better, XFO or frame-ancestors?#

    frame-ancestors — it supports multiple origins and modern browsers ignore XFO when both are set.

    Does this protect against all clickjacking?#

    It covers iframe overlay attacks. UI-redress via popups needs additional mitigations.

  9. Security headers
  10. CSP header check
  11. Cookie security check
  12. Was this article helpful?