From d361802de2b4512ae80ca8168aab23a6ba86d665 Mon Sep 17 00:00:00 2001 From: Mahmut Gundogdu Date: Mon, 23 Jan 2023 19:08:05 +0300 Subject: [PATCH] Add documentation --- .../How-To-Skip-ABP-Headers-And-Interceptors.md | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 docs/en/UI/Angular/How-To-Skip-ABP-Headers-And-Interceptors.md diff --git a/docs/en/UI/Angular/How-To-Skip-ABP-Headers-And-Interceptors.md b/docs/en/UI/Angular/How-To-Skip-ABP-Headers-And-Interceptors.md new file mode 100644 index 0000000000..b52f72b27c --- /dev/null +++ b/docs/en/UI/Angular/How-To-Skip-ABP-Headers-And-Interceptors.md @@ -0,0 +1,10 @@ +# How to Skip HTTP interceptors and ABP headers + +The ABP Framework adds several HTTP headers to the HttpClient, such as the "Auth token" or "tenant Id." +ABP Server must possess the information but the ABP user may not want to send this informations to a external server. +ExternalHttpClient and IS EXTERNAL REQUEST HttpContext Token were added in V6.0.4. +THe ABP Http interceptors check value of `` token. Adding headers is skipped by the interceptor if it is present and its value is true. +The `ExternalHttpClient` extends from `HTTPClient` and set `IS_EXTERNAL_REQUEST` Context token to true. +When you are using `ExternalHttpClient` as HttpClient in your components, it does not add ABP-specific headers. + +Note: With `IS_EXTERNAL_REQUEST` or without, ABP loading service work.