From fa837a393e3af296596e1f459f9ed1b074ec3e97 Mon Sep 17 00:00:00 2001 From: Ben Hong Date: Wed, 27 Mar 2024 11:10:49 -0700 Subject: [PATCH] docs: fix outdated security guide reference (#55069) PR Close #55069 --- adev/src/content/guide/http/setup.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/adev/src/content/guide/http/setup.md b/adev/src/content/guide/http/setup.md index 8ad9dfe25f830..a1b7dce34f4af 100644 --- a/adev/src/content/guide/http/setup.md +++ b/adev/src/content/guide/http/setup.md @@ -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()` | When `HttpClientModule` is present in multiple injectors, the behavior of interceptors is poorly defined and depends on the exact options and provider/import ordering.