Browse Source

quick fix for the How-To-Skip-ABP-Headers-And-Interceptors doc

pull/15491/head
Hamza Albreem 4 years ago
committed by GitHub
parent
commit
857626a523
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      docs/en/UI/Angular/How-To-Skip-ABP-Headers-And-Interceptors.md

10
docs/en/UI/Angular/How-To-Skip-ABP-Headers-And-Interceptors.md

@ -1,10 +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.
The ABP Framework adds several HTTP headers to the HttpClient, such as the "Auth token" or "tenant Id".
The ABP Server must possess the information but the ABP user may not want to send this informations to an external server.
ExternalHttpClient and IS EXTERNAL REQUEST HttpContext Token were added in V6.0.4.
THe ABP Http interceptors check value of `IS_EXTERNAL_REQUEST` token. When the token is True, ABP-specific headers don't add to Http Request.
The `ExternalHttpClient` extends from `HTTPClient` and set `IS_EXTERNAL_REQUEST` Context token to true.
The ABP Http interceptors check the value of the `IS_EXTERNAL_REQUEST` token. If the token is True then ABP-specific headers won't be added to Http Request.
The `ExternalHttpClient` extends from `HTTPClient` and sets the `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.
Note: With `IS_EXTERNAL_REQUEST` or without it, ABP loading service works.

Loading…
Cancel
Save