AntiforgeryCookieResultFilterAttribute class
namespace: Serenity.Services assembly: Serenity.Net.Web
Appends the anti forgery token as a CSRF-TOKEN cookie to the response, so that AJAX calls can read it client side and send it as a header.
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = true)]
public class AntiforgeryCookieResultFilterAttribute : ResultFilterAttribute
| parameter | description |
|---|---|
| antiforgery | The antiforgery service. |
Public Members
| name | description |
|---|---|
| AntiforgeryCookieResultFilterAttribute(…) | Appends the anti forgery token as a CSRF-TOKEN cookie to the response, so that AJAX calls can read it client side and send it as a header. |
| override OnResultExecuting(…) |
Remarks
Initializes a new instance of the AntiforgeryCookieResultFilterAttribute class.
See Also
- Source: AntiforgeryCookieResultFilter.cs