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 *


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>