Browser & Web Performance · Middle · Question 55 of 75
What is clickjacking and which header defends against it?
- ✓Correct answer: Your page is loaded in a hidden iframe to trick users into clicking;
Content-Security-Policy: frame-ancestorsblocks unwanted framing - 2Stealing clicks through ad networks;
Referrer-Policyblocks them - 3Fake buttons injected via XSS;
X-XSS-Protectionblocks them
Explanation
frame-ancestors 'none' or 'self' is the modern option; X-Frame-Options: DENY is the older equivalent.