angular / 5 / api / common / http / httpxsrftokenextractor.html

HttpXsrfTokenExtractor

class

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