IAntiforgery.SetCookieTokenAndHeader(HttpContext) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Generates and stores an antiforgery cookie token if one is not available or not valid.
public:
void SetCookieTokenAndHeader(Microsoft::AspNetCore::Http::HttpContext ^ httpContext);
public void SetCookieTokenAndHeader (Microsoft.AspNetCore.Http.HttpContext httpContext);
abstract member SetCookieTokenAndHeader : Microsoft.AspNetCore.Http.HttpContext -> unit
Public Sub SetCookieTokenAndHeader (httpContext As HttpContext)
Parameters
- httpContext
- HttpContext
The HttpContext associated with the current request.