NG.VII · Angular 22 practice question
After a caller attaches a value for an `HttpContextToken` to an `HttpClient` request, where do HTTP interceptors read that value?
Check answer and explanation
Correct answer: From the `HttpContext` of the request.
Explanation
Interceptors read `HttpContextToken` values directly from the `HttpContext` attached to the outgoing request.
Common trap
`sessionStorage` is unrelated to `HttpClient` request metadata. The server response body is only available after the request completes and does not carry client-side `HttpContext` tokens.
Source: Angular docs: Interceptors — Setting context tokens when making a request
Checked against the cited text on 2026-11-27.