X-Content-Type-Options

Response headers

Stops the browser guessing a different content type than declared.

On the wireX-Content-Type-Options: …
CategoryResponse headers

Headers the server attaches when it answers.

How to read this

  • The first digit of a status code carries the meaning: 4 means the request, 5 means the server.
  • 404 means "not there"; 403 means "there, but not for you". Swapping them makes debugging slower.
  • Header names are case-insensitive — Content-Type and content-type are the same header.
  • Caching and CORS problems usually come down to one header line, visible in the browser’s network tab.

Frequently asked questions

Q. What does HTTP X-Content-Type-Options mean?

Stops the browser guessing a different content type than declared.

Q. What does X-Content-Type-Options look like on the wire?

It travels as X-Content-Type-Options: …

Q. Where does X-Content-Type-Options appear?

In response headers.

Q. What group does X-Content-Type-Options belong to?

The response headers group; the rest of that group is listed further down.

Same group

Reference docs