Friday, March 2, 2012

JsonRequestBehavior.AllowGet

http://forums.asp.net/t/1483387.aspx explains that in order to allow GET Json requests in MVC 2 or greater that one needs to add JsonRequestBehavior.AllowGet to Action calls like so:

return Json(new { isAdmin = isVerifiedAdministrator() }, JsonRequestBehavior.AllowGet);

No comments:

Post a Comment