Send X-Content-Type-Options nosniff on Apache
Why it matters
Without it, browsers may guess a file's type from its content, so an uploaded file that looks like a script or page can be run as one. The header makes them trust the declared Content-Type.
The fix
- Add the line to the virtual host or .htaccess (mod_headers; on Debian and Ubuntu sudo a2enmod headers) and reload Apache.
apache
Header always set X-Content-Type-Options "nosniff" Related
Scan your domain to see whether this applies to you.