[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M72971GRF96S7FCR8W74PPHV":3,"skill-same:01M72971GRF96S7FCR8W74PPHV":61},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":31,"commitSha":32,"skillDirectory":33,"forksCount":34,"repositoryHtmlUrl":35,"repositoryHomepageUrl":36,"ownerHtmlUrl":37,"ownerBlogUrl":38,"ownerDescription":39,"updatedAt":40,"install":41,"resources":54},"01M72971GRF96S7FCR8W74PPHV","x-content-type",null,"Use when auditing HTTP response headers on any web server or CDN for security hardening.","thedaviddias\u002FFront-End-Checklist","thedaviddias","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F237229?v=4","01M6CT5P9WB8TP86JZM77HECAD","David Dias","01M727F1X7RZC3SDR8JFKFFXFE",74734,"MIT","https:\u002F\u002Fgithub.com\u002Fthedaviddias\u002FFront-End-Checklist\u002Fblob\u002Fmain\u002Fskills\u002Fx-content-type\u002FSKILL.md",[],[],"2026-11-10 18:39:20",false,"---\nname: x-content-type\ndescription: \"Use when auditing HTTP response headers on any web server or CDN for security hardening.\"\nmetadata:\n  category: security\n  priority: high\n  difficulty: beginner\n  estimatedTime: \"5\"\n  source: frontendchecklist.io\n  url: https:\u002F\u002Ffrontendchecklist.io\u002Frules\u002Fsecurity\u002Fx-content-type\n---\n\n# Set X-Content-Type-Options: nosniff\n\nBrowsers that MIME-sniff can be tricked into executing malicious JavaScript uploaded as an image — even if the server sends `Content-Type: image\u002Fpng`. `nosniff` forces the browser to honor the declared type.\n\n## Quick Reference\n\n- Set `X-Content-Type-Options: nosniff` on all responses — the only valid value is `nosniff`\n- Without this header, browsers may execute a JavaScript file disguised as an image if the server serves it with the wrong MIME type\n- This header is required by OWASP's security hardening checklist and the Fetch specification\n- Pair with correct `Content-Type` headers on all responses for defense in depth\n- Takes 5 minutes to configure and has no compatibility issues\n\n## Check\n\nCheck whether the server sends an X-Content-Type-Options: nosniff header on responses. Verify the header is present on HTML pages, scripts, stylesheets, and API responses.\n\n## Fix\n\nAdd X-Content-Type-Options: nosniff to all HTTP responses. Configure it at the web server level (Nginx, Apache) or in your application framework, and verify with curl -I https:\u002F\u002Fexample.com.\n\n## Explain\n\nExplain what MIME type sniffing is, how it can be exploited to execute malicious files, and how X-Content-Type-Options: nosniff prevents this attack.\n\n## Code Review\n\nReview server config, headers, forms, and integration points related to Set X-Content-Type-Options: nosniff. Flag exact responses, cookies, or browser behaviors that violate the rule, and verify them against the effective production-like response.\n\n---\n\nFor full implementation details, code examples, and framework-specific guidance,\nsee `references\u002Frule.md`.\n\nRule page: https:\u002F\u002Ffrontendchecklist.io\u002Frules\u002Fsecurity\u002Fx-content-type\n","# Set X-Content-Type-Options: nosniff\n\nBrowsers that MIME-sniff can be tricked into executing malicious JavaScript uploaded as an image — even if the server sends `Content-Type: image\u002Fpng`. `nosniff` forces the browser to honor the declared type.\n\n## Quick Reference\n\n- Set `X-Content-Type-Options: nosniff` on all responses — the only valid value is `nosniff`\n- Without this header, browsers may execute a JavaScript file disguised as an image if the server serves it with the wrong MIME type\n- This header is required by OWASP's security hardening checklist and the Fetch specification\n- Pair with correct `Content-Type` headers on all responses for defense in depth\n- Takes 5 minutes to configure and has no compatibility issues\n\n## Check\n\nCheck whether the server sends an X-Content-Type-Options: nosniff header on responses. Verify the header is present on HTML pages, scripts, stylesheets, and API responses.\n\n## Fix\n\nAdd X-Content-Type-Options: nosniff to all HTTP responses. Configure it at the web server level (Nginx, Apache) or in your application framework, and verify with curl -I https:\u002F\u002Fexample.com.\n\n## Explain\n\nExplain what MIME type sniffing is, how it can be exploited to execute malicious files, and how X-Content-Type-Options: nosniff prevents this attack.\n\n## Code Review\n\nReview server config, headers, forms, and integration points related to Set X-Content-Type-Options: nosniff. Flag exact responses, cookies, or browser behaviors that violate the rule, and verify them against the effective production-like response.\n\n---\n\nFor full implementation details, code examples, and framework-specific guidance,\nsee `references\u002Frule.md`.\n\nRule page: https:\u002F\u002Ffrontendchecklist.io\u002Frules\u002Fsecurity\u002Fx-content-type\n",{"name":5,"metadata":24,"description":7},{"url":25,"source":26,"category":27,"priority":28,"difficulty":29,"estimatedTime":30},"https:\u002F\u002Ffrontendchecklist.io\u002Frules\u002Fsecurity\u002Fx-content-type","frontendchecklist.io","security","high","beginner","5","main","e8d14d049010e2ce25afcd5e8609dfcbbe63e47e","skills\u002Fx-content-type",6782,"https:\u002F\u002Fgithub.com\u002Fthedaviddias\u002FFront-End-Checklist","https:\u002F\u002Ffrontendchecklist.io","https:\u002F\u002Fgithub.com\u002Fthedaviddias","https:\u002F\u002Fthedaviddias.com","Staff Front-End Engineer | Front-End Architecture, Design Systems & Accessibility | Creator of the Front-End Checklist (74K+ ⭐) and serving 100K+ devs","2026-10-31 13:44:22",{"source":8,"skillName":5,"commands":42,"prompt":52,"zipAvailable":53},[43,46,49],{"tool":44,"command":45},"npx","npx skills add thedaviddias\u002FFront-End-Checklist --skill x-content-type",{"tool":47,"command":48},"bunx","bunx skills add thedaviddias\u002FFront-End-Checklist --skill x-content-type",{"tool":50,"command":51},"pnpm","pnpm dlx skills add thedaviddias\u002FFront-End-Checklist --skill x-content-type","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fthedaviddias\u002FFront-End-Checklist\u002Fblob\u002Fmain\u002Fskills\u002Fx-content-type\u002FSKILL.md",true,[55],{"path":56,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":59,"sourceHtmlUrl":60},"references\u002Frule.md","REFERENCE","参考文档",4504,"https:\u002F\u002Fgithub.com\u002Fthedaviddias\u002FFront-End-Checklist\u002Fblob\u002Fmain\u002Fskills\u002Fx-content-type\u002Freferences\u002Frule.md",[62,69,76,83,90,97],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M7297914KF3EJ9SNRBYVTWXZ","zoom-reflow","Use when reviewing rendered HTML, interactive components, or design-system patterns related to Support content reflow at 400% zoom. Check native semantics first, then inspect keyboard behavior, focus flow, accessible names, and screen-reader output where relevant.","https:\u002F\u002Fgithub.com\u002Fthedaviddias\u002FFront-End-Checklist\u002Fblob\u002Fmain\u002Fskills\u002Fzoom-reflow\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M72976M0SMS9Q3ZAWZJ7Y7QP","ymyl-detection","Use when applies to any site in health, medicine, finance, law, safety, news, or similar fields. Use when auditing content quality for sites in YMYL categories or investigating why high-quality-seeming content underperforms.","https:\u002F\u002Fgithub.com\u002Fthedaviddias\u002FFront-End-Checklist\u002Fblob\u002Fmain\u002Fskills\u002Fymyl-detection\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M72973Z1SYKM0A09ZG409BRR","x-frame-options","Use when reviewing HTTP response headers for clickjacking protection on any web application with authenticated user actions.","https:\u002F\u002Fgithub.com\u002Fthedaviddias\u002FFront-End-Checklist\u002Fblob\u002Fmain\u002Fskills\u002Fx-frame-options\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7296W4PK1AX88SW37W18JP1","word-count","Use when applies to key landing pages, blog posts, product pages, and any page targeting competitive queries. Use when diagnosing poor rankings or after a Google Helpful Content update.","https:\u002F\u002Fgithub.com\u002Fthedaviddias\u002FFront-End-Checklist\u002Fblob\u002Fmain\u002Fskills\u002Fword-count\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":19},"01M7296Q6W3MPA55THRS4SVSHD","website-search","Use when applies to sites with internal site search functionality. Use when optimizing branded search result appearance or adding structured data for the first time.","https:\u002F\u002Fgithub.com\u002Fthedaviddias\u002FFront-End-Checklist\u002Fblob\u002Fmain\u002Fskills\u002Fwebsite-search\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":19},"01M7296GDVNYRWVAGBG0E6SS3N","webpagetest","Use when reviewing templates, rendered HTML, or shared components related to Analyze performance with WebPageTest. Validate the final browser-facing markup, not just the source framework abstraction.","https:\u002F\u002Fgithub.com\u002Fthedaviddias\u002FFront-End-Checklist\u002Fblob\u002Fmain\u002Fskills\u002Fwebpagetest\u002FSKILL.md",[],[]]