X-Content-Type-Options

Stops browsers from guessing the content type.

Response header (sent by servers) security

How it works

nosniff prevents a JSON or text response from being interpreted as HTML or script.

Example

X-Content-Type-Options: nosniff

See it live: send any request in Endpoint Client and open the Headers tab, where every response header is explained. Specification: Fetch Standard.

Related headers