🚀 Launch countdown

9 December 2026

Security

Bad Content Type

The server sends a Content-Type header that doesn’t match the resource’s actual type.

Why it matters

A Content-Type mismatch can stop browsers rendering pages, force unwanted file downloads, or block stylesheets and scripts from working properly.

How to fix it

  1. Check your web server or CDN configuration for the file extension and set the right MIME type.
  2. Use text/html for HTML, text/css for CSS, and text/javascript for JavaScript.
  3. Fix the Content-Type header first, then set X-Content-Type-Options: nosniff so browsers don’t guess.

Where to find it

This finding is reported in the Security tab, and appears in Findings under the matching severity.

A term you don't recognise is defined in the glossary.

Other security findings

Findings library, by category.