Removing the X-AspNetMvc-Version Response Header

by Bill Beckelman 15. March 2010 10:53

I was interested in removing the X-AspNetMvc-Version response header this morning. It turned out to be easy enough in code. Just add MvcHandler.DisableMvcResponseHeader = true to the Application Start event in your Global.asax.cs file. Here is a really good write up on Howard van Rooijen’s blog on the security reasons of why you might want to do so.

Tags:

ASP.NET MVC

Comments


About Me

I live and work in Salt Lake City, Utah. My background is in aviation. I have a degree in Aeronautical Science from Embry-Riddle Aeronautical University in Prescott, AZ. I have worked as a commercial airline pilot and most recently as a technical advisor for a charter airline.