Web Security · Middle · Question 69 of 75

What does X-Content-Type-Options: nosniff do?

Explanation

Without it, an uploaded file served as text/plain could be sniffed and run as HTML or JavaScript in some cases.

Further reading

Problem with a question

Web Security · Middle · question 69

Test yourself

Take the Web Security · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz