DYK: You can remove the ASP.NET MVC version from the Response Header

Did you know that you can remove X-AspNetMvc-Version from the response header on your ASP.NET MVC web application?

It’s actually quite simple to remove the MVC version from the response header within a web application. Open up the Global.asax file and add to the Application_Start method the following:

MvcHandler.DisableMvcResponseHeader = true;

That’s it. Hope that helps!

Leave a Reply

Your email address will not be published. Required fields are marked *