Security alerts eMudhra CA compromise · Chrome drops the root Oct 27 Check your certificate → PHP2Shell · is your PHP version exposed? Check your site →

Help › Fix guides › X-Frame-Options missing (clickjacking)

Fix guide · Web application · low

X-Frame-Options missing (clickjacking)

Without X-Frame-Options, any website can load your pages inside an invisible frame and trick visitors into clicking buttons they cannot see: approving a payment, changing a setting, or liking something. This is called clickjacking. The header tells browsers not to let other sites frame you.

Time to fix

5 minutes

Risk if ignored

Visitors tricked into hidden clicks

Breaks anything?

Only if another site of yours embeds these pages in a frame

How to fix it

In the server block (or http block for every site):

add_header X-Frame-Options "SAMEORIGIN" always;

Then: sudo nginx -t && sudo systemctl reload nginx

Also add frame-ancestors 'self' to your Content-Security-Policy. It is the modern replacement; sending both covers old and new browsers.

Check your fix

Rescan and we’ll confirm it’s fixed.

Common mistakes

  • Using DENY when your own site frames its pages (for example a preview pane), which breaks them. SAMEORIGIN allows your own site.
  • Using ALLOW-FROM. Browsers no longer support it; use CSP frame-ancestors to allow specific sites.
  • Setting it in a <meta> tag. Browsers ignore X-Frame-Options there.

Still stuck?

Ask a human. We answer every ticket.

Tickets are answered 7am–7pm Pacific, usually within a few hours. Your whole conversation stays in your account.

Live chat, inside your ticket

On a Pro or Enterprise plan? Open any ticket and, when we’re online, chat with us live right there. The chat is saved on the ticket with everything else, so nothing gets lost.

Free plan: tickets only. Same people, same answers.

Not a customer yet? Questions about plans go to sales.