Clickjacking
BeginnerA transparent iframe overlays your bank's "Transfer" button on an evil site. You click "Win a Prize!" — and unknowingly confirm a $5,000 transfer. Fix it with X-Frame-Options and CSP.
Progress:
1
Trigger the Attack2
Block with X-Frame-Options3
Block with CSP frame-ancestors🎭 evil.site — the attacker's page
🛡 Bank response headers
X-Frame-Options
CSP frame-ancestors
Browser / server log
Click the prize button or check headers…