0

Would there be any consequence in blocking HEAD requests with Elmah? I get quit a few of errors that come through with Elmah. Should I have ASP.NET MVC accept HEAD requests? I'm not sure if I am missing something with HEAD.

Mike Flynn
  • 22,342
  • 54
  • 182
  • 341

1 Answers1

0

I came across this when trying to get rid of the constant errors being logged to elmah by site24x7 that is checking uptime on our asp.net mvc 3 site. using HEAD (a seemingly less heavy way of checking uptime)

see this post for how to allow HEAD requests

[AcceptVerbs(new[] {"GET", "HEAD"})]
public ActionResult TestMe()
{
    return View();
}
Community
  • 1
  • 1
Aussie Ash
  • 1,276
  • 12
  • 10