Partilhar via


RoutingEndpointConventionBuilderExtensions.DisableAntiforgery<TBuilder> Método

Definição

Desabilita a validação de token antifalsificação para todos os pontos de extremidade produzidos no de destino IEndpointConventionBuilder.

public static TBuilder DisableAntiforgery<TBuilder> (this TBuilder builder) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder;
static member DisableAntiforgery : 'Builder -> 'Builder (requires 'Builder :> Microsoft.AspNetCore.Builder.IEndpointConventionBuilder)
<Extension()>
Public Function DisableAntiforgery(Of TBuilder As IEndpointConventionBuilder) (builder As TBuilder) As TBuilder

Parâmetros de tipo

TBuilder

Parâmetros

builder
TBuilder

O IEndpointConventionBuilder.

Retornos

TBuilder

O IEndpointConventionBuilder.

Aplica-se a