CookieXSRFStrategy
class
deprecated
XSRFConfiguration
sets up Cross Site Request Forgery (XSRF) protection for the application using a cookie. See https://www.owasp.org/index.php/Cross-SiteRequest_Forgery(CSRF) for more information on XSRF.
Deprecated: see https://angular.io/guide/http
class CookieXSRFStrategy implements XSRFStrategy { constructor(_cookieName: string = 'XSRF-TOKEN', _headerName: string = 'X-XSRF-TOKEN') configureRequest(req: Request): void }
Description
Applications can configure custom cookie and header names by binding an instance of this class with different cookieName
and headerName
values. See the main HTTP documentation for more details.
Constructor
|
_cookieName | string | Optional. Default is |
_headerName | string | Optional. Default is |
Methods
configureRequest() |
---|
© 2010–2019 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v7.angular.io/api/http/CookieXSRFStrategy