HttpXsrfTokenExtractor
From Get docs
< @angular/common | httpAngular/docs/11/api/common/http/httpxsrftokenextractor
HttpXsrfTokenExtractor
class
Retrieves the current XSRF token to use with the next outgoing request.
abstract class HttpXsrfTokenExtractor {
abstract getToken(): string | null
}
Provided in
-
HttpClientXsrfModule
Methods
getToken() |
---|
Get the XSRF token to use with an outgoing request. |
abstract getToken(): string | nullParametersThere are no parameters. Returns
|
Will be called for every request, so the token may change between requests. |
© 2010–2021 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v11.angular.io/api/common/http/HttpXsrfTokenExtractor