• Overview
@angular/common/http

HttpClientXsrfModule

NgModule
Deprecated

Configures XSRF protection support for outgoing requests.

  
    class HttpClientXsrfModule {}
  
  

Disable the default XSRF protection.

Configure XSRF protection.

@paramoptions{ cookieName?: string | undefined; headerName?: string | undefined; }

An object that can specify either or both cookie name or header name.

  • Cookie name default is XSRF-TOKEN.
  • Header name default is X-XSRF-TOKEN.
Jump to details