{ "@context": "https://schema.org", "@id": "https://webspecification.com/spec/security/x-content-type-options.jsonld", "@graph": [ { "@type": "TechArticle", "@id": "https://webspecification.com/spec/security/x-content-type-options/#article", "headline": "X-Content-Type-Options: nosniff", "description": "The nosniff header stops browsers from guessing a response's content type. It blocks a class of attacks where a benign-looking file is interpreted as script or stylesheet.", "url": "https://webspecification.com/spec/security/x-content-type-options/", "inLanguage": "en", "isPartOf": { "@type": "WebSite", "@id": "https://webspecification.com/#website", "name": "Web Specification Studio", "url": "https://webspecification.com" }, "author": { "@type": "Person", "name": "Web Specification Studio", "url": "https://webspecification.com" }, "publisher": { "@type": "Organization", "@id": "https://webspecification.com/#organization", "name": "Web Specification Studio", "url": "https://webspecification.com" }, "license": "https://creativecommons.org/licenses/by/4.0/", "dateModified": "2026-05-29T09:13:20.000Z", "citation": [ { "@type": "CreativeWork", "name": "MDN — X-Content-Type-Options", "url": "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/X-Content-Type-Options", "publisher": { "@type": "Organization", "name": "MDN" } }, { "@type": "CreativeWork", "name": "Fetch Standard — MIME type checks", "url": "https://fetch.spec.whatwg.org/#x-content-type-options-header", "publisher": { "@type": "Organization", "name": "WHATWG" } }, { "@type": "CreativeWork", "name": "OWASP Secure Headers Project", "url": "https://owasp.org/www-project-secure-headers/", "publisher": { "@type": "Organization", "name": "OWASP" } } ] }, { "@type": "BreadcrumbList", "@id": "https://webspecification.com/spec/security/x-content-type-options/#breadcrumb", "itemListElement": [ { "@type": "ListItem", "position": 1, "name": "Home", "item": "https://webspecification.com/" }, { "@type": "ListItem", "position": 2, "name": "Spec", "item": "https://webspecification.com/spec/" }, { "@type": "ListItem", "position": 3, "name": "Security", "item": "https://webspecification.com/spec/security/" }, { "@type": "ListItem", "position": 4, "name": "X-Content-Type-Options: nosniff", "item": "https://webspecification.com/spec/security/x-content-type-options/" } ] } ] }