# Truth Spine proof: MDN says nosniff prevents XSS attacks where uploaded content runs as an HTML document

**Problem:** No X-Content-Type-Options: nosniff. Truth Spine record I-0117: https://ursy.com/truth-spine/I-0117/

**Caption.** MDN says the nosniff setting prevents XSS attacks where user-uploaded content is executed as an HTML document. Truth Spine record I-0117.

**What this picture proves.** The problem is that there is no X-Content-Type-Options: nosniff header. MDN's reference page for the header explains that with nosniff the browser will not treat a plain text file as HTML, and says "This prevents XSS-attacks where user-uploaded content is executed as an HTML document". Those words back the problem: without nosniff, an uploaded file could be run as a page.

**What the picture shows.** At the top is a pale grey address strip. Small dark text at the left reads "URSY.com saved copy · read 2026-12-01", and below it a long white rounded bar holds the source address, "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/X-Content-Type-Options", in dark grey sans type with a thin red box drawn round it. Below the strip is the saved MDN page in three columns. At the top left, a small grey button with an up arrow is half hidden under the strip. The left side menu has bold "HTTP" and "Guides" headings and a list of dark grey guide links from "Overview of HTTP" to "User-Agent reduction"; below that the menu is blank. The middle column has dark grey sans body text with monospace terms on pale grey chips, such as "X-Content-Type-Options", "Content-Type", "nosniff", "text/css" and "text/plain", and blue underlined links, some with small external-link icons. Two bullets have bold lead-ins, "Request blocking" and "MIME type sniffing disabled". In the second bullet two thin red rectangles mark the quote: one round "This prevents XSS-attacks" at the end of a line, where "XSS-attacks" is a blue link, and one round "where user-uploaded content is executed as an HTML document" at the start of the next line; the comma and "even if the browser has" sit outside. Below is a small table with "Header type" and "Response header", and "Forbidden response header" and "No". Then come the underlined black heading "Syntax", a small "http Copy" label, the monospace line "X-Content-Type-Options: nosniff" and the underlined heading "Directives". At the bottom is the URSY.com Truth Spine label, a light blue band under a blue top line. On the left, a small grey line reads "Website problem · Security and HTTPS · official source: MDN". Below it the problem title, "No X-Content-Type-Options: nosniff", is set in big bold navy type, then "Source and record: ursy.com/truth-spine/I-0117/" with the address in blue. On the right is a blue rounded badge with white lettering: "URSY.com", "TRUTH SPINE" and "FACT RECORD I-0117". Under a thin grey rule, the bottom line reads "Every fact on URSY.com is recorded with its source in the URSY.com Truth Spine. Explore them all at ursy.com/truth-spine", with the last address in blue.

**The red outline:** address strip, round the source address: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/X-Content-Type-Options"; middle column, in the bullet 'MIME type sniffing disabled'; two red outlines, one round 'This prevents XSS-attacks' at the end of a line and one round the rest of the quote at the start of the next line: "This prevents XSS-attacks where user-uploaded content is executed as an HTML document"

**Printed lines, in reading order:**
- URSY.com saved copy · read 2026-12-01
- https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/X-Content-Type-Options **(boxed in red)**
- HTTP messages
- Media types
- Common types
- Compression in HTTP
- HTTP caching
- HTTP authentication
- Using HTTP cookies
- Redirections in HTTP
- Conditional requests
- Range requests
- Client hints
- User-Agent reduction
- Request blocking: For requests with a destination of "script" or "style", the browser
- blocks the response if the MIME type doesn't match an expected type (a JavaScript MIME
- type for scripts, or text/css for stylesheets). See the Fetch specification for details.
- MIME type sniffing disabled: For other response types, including navigations to a new
- HTML document, the browser uses the supplied Content-Type as-is instead of examining
- the content to infer the type. For example, if a server sends a response with
- Content-Type:
- text/plain and X-Content-Type-Options: nosniff, the browser will not
- interpret it as HTML, even if the content contains HTML markup. This prevents XSS-attacks **(boxed in red)**
- where user-uploaded content is executed as an HTML document, even if the browser has **(boxed in red)**
- specified that it should be treated as plain text (or some other type). See the MIME Sniffing
- specification for details.
- Header type
- Response header
- Forbidden response header
- No
- http Copy
- X-Content-Type-Options: nosniff
- Control Your LLM Infrastructure Meet Otari, the open source LLM Control Plane built by Mozilla AI. Discover Otari Ad
- Don't want to see ads?
- 19 more lines not listed
- Website problem · Security and HTTPS · official source: MDN
- No X-Content-Type-Options: nosniff
- Source and record: ursy.com/truth-spine/I-0117/
- URSY.com TRUTH SPINE FACT RECORD I-0117
- Every fact on URSY.com is recorded with its source in the URSY.com Truth Spine. Explore them all at ursy.com/truth-spine

**Where it came from.**
- Source: MDN, "X-Content-Type-Options": https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/X-Content-Type-Options
- Saved by URSY.com on 1 December 2026 (sha256 bf491bc3a68c569ba157ca01098fce27156d74fe5ff5a1018f0a71f8128035a7).
- Look for public archive copies (a search, not a copy saved by URSY.com): https://web.archive.org/web/2026*/https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/X-Content-Type-Options

**The problem, explained, with how to fix it:** https://ursy.com/issues/x-content-type-options-missing/

Every fact on URSY.com is recorded with its source in the URSY.com Truth Spine: https://ursy.com/truth-spine/

URSY.com - www.ursy.com
