AntiforgeryCookieResultFilterAttribute class

namespace: Serenity.Services   assemblySerenity.Net.Web

Append the anti forgery token as CSRF-TOKEN cookie to the response, so that AJAX calls can read it client side and send as a header.

[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = true)]
public class AntiforgeryCookieResultFilterAttribute : ResultFilterAttribute

Public Members

name description
AntiforgeryCookieResultFilterAttribute(…) Creates a new instance of the class
override OnResultExecuting(…)

See Also