From d63f71931eb1f1d550c33abe1906fd6dcffa0212 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 --- adev/src/content/guide/http/setup.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/adev/src/content/guide/http/setup.md b/adev/src/content/guide/http/setup.md index 696077941dede..a1b7dce34f4af 100644 --- a/adev/src/content/guide/http/setup.md +++ b/adev/src/content/guide/http/setup.md @@ -83,11 +83,11 @@ HELPFUL: Prefer using [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/C ### `withXsrfConfiguration(...)` -Including this option allows for customization of `HttpClient`'s built-in XSRF security functionality. See the [security guide](guide/http/security) for more information. +Including this option allows for customization of `HttpClient`'s built-in XSRF security functionality. See the [security guide](best-practices/security) for more information. ### `withNoXsrfProtection()` -Including this option disables `HttpClient`'s built-in XSRF security functionality. See the [security guide](guide/http/security) for more information. +Including this option disables `HttpClient`'s built-in XSRF security functionality. See the [security guide](best-practices/security) for more information. ## `HttpClientModule`-based configuration @@ -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.