http://blog.gregbrant.com/post/Adding-Custom-HTTP-Headers-to-an-ASPNET-MVC-Response.aspx
public static void RegisterGlobalFilters(GlobalFilterCollection filters)
{
filters.Add(new HandleErrorAttribute());
filters.Add(new HttpHeaderAttribute("X-UA-Compatible", "IE=Edge,chrome=1"));
}
or
in web.config
<system.webServer>
<httpProtocol>
<customHeaders>
<add name="X-UA-Compatible" value="IE=Edge,chrome=1" />
<remove name="X-Powered-By" />
</customHeaders>
</httpProtocol>
</system.webServer>
No comments:
Post a Comment