What does the response header X-Content-Type-Options: nosniff instruct the browser to do?
X-Content-Type-Options: nosniff
- Not guess a resource's content type
- Force the whole site onto HTTPS
- Block framing by other origins
- Strip cookies from the request
nosniff makes the browser trust the declared Content-Type instead of MIME-sniffing, preventing a text or image response being treated as script.
Play Cybersecurity ▸