🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: HTTPS, Cookies and Headers: all 10 questions

Quiz: HTTPS, Cookies and Headers · Question 9 of 10

What does the header X-Content-Type-Options: nosniff prevent?

What does the header X-Content-Type-Options: nosniff prevent?

  1. A.The browser guessing a file's type and running an uploaded "image" as a script
  2. B.Clickjacking
  3. C.Cookies being sent cross-site
  4. D.HTTP downgrades
Answer & explanation

Correct answer: The browser guessing a file's type and running an uploaded "image" as a script

The browser must trust the declared Content-Type instead of sniffing the content.

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 →