AntiforgeryStateProvider Class

Definition

Provides access to the antiforgery token associated with the current session.

C#
public abstract class AntiforgeryStateProvider
Inheritance
AntiforgeryStateProvider

Constructors

Methods

GetAntiforgeryToken()

Gets the current AntiforgeryRequestToken if available.

Applies to

Product Versions
ASP.NET Core 8.0, 9.0