HttpClientXsrfModule
NgModule
Deprecated
Configures XSRF protection support for outgoing requests.
API
Description
class HttpClientXsrfModule {}
Disable the default XSRF protection.
@returns
ModuleWithProviders<HttpClientXsrfModule>withOptions
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.
@returns
ModuleWithProviders<HttpClientXsrfModule>Jump to details