Class HttpClientXsrfModule
Methods
Static disable
- disable(): ConfiguredModule
Static withOptions
- withOptions(options?: { cookieName?: string; headerName?: string }): ConfiguredModule
-
Parameters
-
Default value options: { cookieName?: string; headerName?: string } = {}
-
Optional cookieName?: string
-
Optional headerName?: string
Returns ConfiguredModule
An NgModule that adds XSRF protection support to outgoing requests.
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 isX-XSRF-TOKEN
.