docs(aio): HttpClientXsrfModule withConfig => withOptions (#21185)

Docummentation suggests use of HttpClientXsrfModule#withConfig but this method looks like it's renamed to #withConfig.
https://angular.io/guide/http#configuring-custom-cookieheader-names
PR Close #21185
This commit is contained in:
Dawid Winiarczyk 2017-12-27 17:18:13 +01:00 committed by Miško Hevery
parent bc7a6d7b00
commit d365077dfa
1 changed files with 2 additions and 2 deletions

View File

@ -547,12 +547,12 @@ In order to prevent collisions in environments where multiple Angular apps share
### Configuring custom cookie/header names
If your backend service uses different names for the XSRF token cookie or header, use `HttpClientXsrfModule.withConfig()` to override the defaults.
If your backend service uses different names for the XSRF token cookie or header, use `HttpClientXsrfModule.withOptions()` to override the defaults.
```javascript
imports: [
HttpClientModule,
HttpClientXsrfModule.withConfig({
HttpClientXsrfModule.withOptions({
cookieName: 'My-Xsrf-Cookie',
headerName: 'My-Xsrf-Header',
}),