Class MiddlewareExtensions
Inherited Members
Namespace: FastEndpoints
Assembly: FastEndpoints.dll
Syntax
public static class MiddlewareExtensions
Methods
UseAntiForgery(IApplicationBuilder)
enable anti-forgery token verification middleware.
make sure to also add the anti-forgery services with builder.Services.AddAntiForgery()
Declaration
public static IApplicationBuilder UseAntiForgery(this IApplicationBuilder app)
Parameters
Type | Name | Description |
---|---|---|
IApplicationBuilder | app |
Returns
Type | Description |
---|---|
IApplicationBuilder |