X-Content-Type-Options missing
Browsers may guess content types, which can turn a harmless-looking file into executable script.
- X-Content-Type-Options
- nosniff, nosniff
X-Content-Type-Options: nosniff to all responses.Why it matters ↓Why it matters ↑
Stops browsers from interpreting uploaded or mislabelled files as scripts or stylesheets.
How we check: Checks that X-Content-Type-Options is set to nosniff.
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Content-Type-Options