Skip to content

QuizNot attempted

Match the header

Which header stops another site from loading your page in an iframe (clickjacking)?
1–4 to choose, Enter to submit
Show answer & explanation

Correct answer:

  • Content-Security-Policy: frame-ancestors 'none' (or the older X-Frame-Options: DENY)
  • frame-ancestors 'none' (or the legacy X-Frame-Options: DENY) tells the browser not to render your page inside any frame, which is what clickjacking needs.
  • Not nosniff: stops MIME-type guessing.
  • Not HSTS: forces HTTPS for future visits.
  • Not Referrer-Policy: controls how much of the URL leaks to other sites.
  • Headers turn off unsafe browser defaults
  • they don't fix bugs.