← 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?
- A.The browser guessing a file's type and running an uploaded "image" as a script
- B.Clickjacking
- C.Cookies being sent cross-site
- 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 →