Loadingβ¦
Stop browsers from MIME-sniffing responses β a one-line header that closes an XSS vector.
Without this header, browsers may "sniff" a response's content type and execute, say, an uploaded image as a script. nosniff forces the browser to honour the declared Content-Type, closing that vector.
X-Content-Type-Options: nosniff to every response.Content-Type headers so nosniff doesn't break legitimate files.# No X-Content-Type-Options headerX-Content-Type-Options: nosniffAdd via a security-headers plugin or .htaccess.
Add it under headers() in next.config.js.
Run a free audit and get a prioritized fix list with auto-generated code.
Run a free audit