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!

Published Thursday, August 27, 2009 11:27 AM by Jason N. Gaylord

Comments

No Comments