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
- Check your web server or CDN configuration for the file extension and set the right MIME type.
- Use text/html for HTML, text/css for CSS, and text/javascript for JavaScript.
- 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
- HTTP URLs
- Mixed Content
- Unsafe Cross-Origin Links
- Protocol-Relative Resource Links
- Form Submits to Insecure URL
- Form On HTTP URL
- Missing HSTS Header
- Missing Content-Security-Policy Header
- Missing X-Content-Type-Options Header
- Missing X-Frame-Options Header
- Missing Secure Referrer-Policy Header
Findings library, by category.