Angular 22 Quietly Replaced XHR -Here’s What Actually Changes For You (Part 5)
This title could be clearer and more informative.Try out Clickbait Shieldfor free (5 uses left this month).
Angular 22 switches HttpClient's default backend from XMLHttpRequest to the native Fetch API. For most apps this requires zero code changes and brings benefits like better SSR compatibility, native streaming support, and improved service worker integration. The key breaking change is upload progress tracking: FetchBackend does not fire UploadProgress events, so apps relying on reportProgress must explicitly opt back into XHR using withXhr(). The post covers migration steps, a complete file upload service example using signals, unit testing considerations with HttpTestingController, and bonus tips around streaming large responses and service worker caching.