Content/MIME Sniffing Protection
Protect your Umbraco site from MIME sniffing vulnerabilities using security headers like X-Content-Type-Options.
Last updated
Protect your Umbraco site from MIME sniffing vulnerabilities using security headers like X-Content-Type-Options.
Last updated
Checks that your site contains a header used to protect against Multipurpose Internet Mail Extensions (MIME) sniffing vulnerabilities.
This health check can be fixed by adding a header before the response is started.
Preferable you use a security library like .
If you take a NuGet dependency on , you can use third extension methods on WebApplication
.
If you don't like to have a dependency on third party libraries. You can add the following custom middleware to the request pipeline.
First create the middleware class:
Next register it in Program.cs