HttpXsrfTokenExtractor

class

npm Package @angular/common
Module import { HttpXsrfTokenExtractor } from '@angular/common/http';
Source common/http/src/xsrf.ts

Overview

class HttpXsrfTokenExtractor {
  getToken(): string | null
}

Description

Retrieves the current XSRF token to use with the next outgoing request.

Members

getToken(): string | null

Get the XSRF token to use with an outgoing request.

Will be called for every request, so the token may change between requests.

© 2010–2018 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v5.angular.io/api/common/http/HttpXsrfTokenExtractor