* Configure XSRF protection. * @param options 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`. *
(
options: {
cookieName?: string;
headerName?: string;
} = {},
)
| 72 | * |
| 73 | */ |
| 74 | static withOptions( |
| 75 | options: { |
| 76 | cookieName?: string; |
| 77 | headerName?: string; |
| 78 | } = {}, |
| 79 | ): ModuleWithProviders<HttpClientXsrfModule> { |
| 80 | return { |
| 81 | ngModule: HttpClientXsrfModule, |
| 82 | providers: withXsrfConfiguration(options).ɵproviders, |
| 83 | }; |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | /** |
nothing calls this directly
no test coverage detected