Method | Description | |
---|---|---|
OnActionExecuting ( System.Web.Mvc.ActionExecutingContext filterContext ) : void |
Method | Description | |
---|---|---|
ShouldValidateAntiForgeryTokenManually ( System.Web.Mvc.ActionExecutingContext filterContext ) : bool |
We should validate the anti forgery token manually if the following criteria are met: 1. The http method must be POST 2. There is not an existing [ValidateAntiForgeryToken] attribute on the action 3. There is not an existing [ValidateAntiForgeryTokenHeaderOrForm] attribute on the action 3. There is no [IgnoreAntiForgeryToken] attribute on the action
|
public OnActionExecuting ( System.Web.Mvc.ActionExecutingContext filterContext ) : void | ||
filterContext | System.Web.Mvc.ActionExecutingContext | |
return | void |