← Quiz: HTTPS, Cookies and Headers: all 10 questions
Quiz: HTTPS, Cookies and Headers · Question 4 of 10
Which header helps prevent clickjacking?
Which header helps prevent clickjacking?
- A.X-Content-Type-Options: nosniff
- B.Content-Security-Policy: frame-ancestors 'none'
- C.Referrer-Policy
- D.Cache-Control
Answer & explanation
Correct answer: Content-Security-Policy: frame-ancestors 'none'
frame-ancestors (or the older X-Frame-Options: DENY) stops other sites from loading your page inside a frame.
Can you get the rest right without peeking?
Take the timed Quiz: HTTPS, Cookies and Headers quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →