HttpClientXsrfModule
Configures XSRF protection support for outgoing requests.
class HttpClientXsrfModule {
static disable(): ModuleWithProviders<HttpClientXsrfModule>
static withOptions(options: { cookieName?: string; headerName?: string; } = {}): ModuleWithProviders<HttpClientXsrfModule>
}
Description
For a server that supports a cookie-based XSRF protection system, use directly to configure XSRF protection with the correct cookie and header names.
If no names are supplied, the default cookie name is XSRF-TOKEN
and the default header name is X-XSRF-TOKEN
.
Static methods
Disable the default XSRF protection. |
ParametersThere are no parameters. Returns |
Configure XSRF protection. |
|||
Parameters
Returns |
Providers
Provider |
---|
|
|
|
|
|