I have modified the web.config as to prevent the mime sniff.
<configuration>
<system.webServer>
<httpProtocol>
<customHeaders>
<add name="X-Content-Type-Options" value="nosniff" />
</customHeaders>
</httpProtocol>
</system.webServer>
</configuration>
but code scan tool still told me that global.asax.cs has the vulnerabilities
Application_BeginRequest is either empty or does not include a function call to set the X-Content-Type-Options to nosniff or attempts to remove that header.
So how to set X-Content-Type-Options: nosniff in Global.asax.cs ?