Skip to content

Commit

Permalink
docs: fix outdated security guide reference (#55069)
Browse files Browse the repository at this point in the history
PR Close #55069
  • Loading branch information
bencodezen authored and atscott committed Mar 28, 2024
1 parent 4d04399 commit fa837a3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions adev/src/content/guide/http/setup.md
Expand Up @@ -95,12 +95,12 @@ Some applications may configure `HttpClient` using the older API based on NgModu

This table lists the NgModules available from `@angular/common/http` and how they relate to the provider configuration functions above.

| **NgModule** | `provideHttpClient()` equivalent |
| - | - |
| `HttpClientModule` | `provideHttpClient(withInterceptorsFromDi())` |
| `HttpClientJsonpModule` | `withJsonpSupport()` |
| `HttpClientXsrfModule.withOptions(...)` | `withXsrfConfiguration(...)` |
| `HttpClientXsrfModule.disable()` | `withNoXsrfProtection()` |
| **NgModule** | `provideHttpClient()` equivalent |
| --------------------------------------- | --------------------------------------------- |
| `HttpClientModule` | `provideHttpClient(withInterceptorsFromDi())` |
| `HttpClientJsonpModule` | `withJsonpSupport()` |
| `HttpClientXsrfModule.withOptions(...)` | `withXsrfConfiguration(...)` |
| `HttpClientXsrfModule.disable()` | `withNoXsrfProtection()` |

<docs-callout important title="Use caution when using HttpClientModule in multiple injectors">
When `HttpClientModule` is present in multiple injectors, the behavior of interceptors is poorly defined and depends on the exact options and provider/import ordering.
Expand Down

0 comments on commit fa837a3

Please sign in to comment.