NG.VII · Angular 22 practice question

While debugging a CORS issue in an interceptor with the fetch backend enabled, which property on the response reveals how the browser handled CORS policies and request mode?

Choose one answer
Check answer and explanation

Correct answer: responseType

Explanation

With the fetch backend, responses expose a responseType property aligned with the Fetch API that shows how the browser processed CORS policies and request mode.

Common trap

corsMode is not a property on Angular HTTP responses; request mode is configured on requests, while the response exposes responseType. fetchStatus is a fabricated property name; HTTP status codes are exposed via status and statusText.

Source: Angular docs: Interceptors — Working with response types
Checked against the cited text on 2026-11-25.

Report an error in this question