
Clickjacking hides your real page inside an invisible frame on an attacker's site. The user thinks they are clicking the attacker's content, but they are actually clicking buttons on your page, such as "delete account" or "confirm payment".
If your pages can be loaded in a frame by any website, an attacker can layer them under a decoy page and line up the clicks. It needs no bug in your code, only a missing header.
Content-Security-Policy: frame-ancestors 'self' (or 'none').X-Frame-Options: DENY or SAMEORIGIN for older browsers.frame-ancestors.postMessage handling.Use CSP frame-ancestors as the modern control and keep X-Frame-Options for older browsers.
All pages that perform actions for a logged-in user. Most sites simply apply it to every page.
Try Vooki Pro free for 7 days
Check in minutes whether your pages can be framed. The trial unlocks every feature for 7 days, and scanning runs on your own machine.
Related: API keys and secrets in front-end code · Rate limiting and denial-of-service protection