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
Content-Security-Policy
Restricts what a browser page may load and run.
Cross-Origin-Resource-Policy
Which origins may embed this resource.
Permissions-Policy
Which browser features a page may use.
Referrer-Policy
How much of the current URL browsers send as Referer.
Strict-Transport-Security
Tells browsers to use HTTPS only for this host.
X-Frame-Options
Whether the page may be shown in a frame.