Security · Security headers

Missing X-Frame-Options header

This page is served without an X-Frame-Options header. Its Content-Security-Policy still blocks framing, but older browsers only read X-Frame-Options.

How this page is built

Every page on this site is served with four security headers: X-Content-Type-Options, X-Frame-Options, Referrer-Policy and Content-Security-Policy. They are listed page by page in the site's Netlify _headers file, and this page's entry leaves out X-Frame-Options. Its Content-Security-Policy still has frame-ancestors 'none', so modern browsers will not let other sites frame it.

Why it matters

If another site can load your page in a frame, it can hide the frame under its own buttons and trick visitors into clicking things on your page, known as clickjacking. X-Frame-Options tells the browser not to allow it. The newer frame-ancestors setting in a Content Security Policy does the same job, but some older browsers and many audit tools still look for X-Frame-Options.

How to check it

Fetch the page and read its response headers, with curl -I or the network panel in the browser’s developer tools. Crawl tools can report security headers for every page, and online header scanners grade them. Here, look for X-Frame-Options in the response.

How to fix it

Add X-Frame-Options: DENY, or SAMEORIGIN if the site frames its own pages, alongside frame-ancestors in the Content Security Policy.

Back to all tests