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

# ASP.NET MVC Archived Blog Posts, Page 1

Monday, August 31, 2009 1:38 AM by ASP.NET MVC Archived Blog Posts, Page 1

Pingback from  ASP.NET MVC Archived Blog Posts, Page 1

Leave a Comment

(required) 
(required) 
(optional)
(required)