Add withXhr() to provideHttpClient()
ProprietaryAdds withXhr() to provideHttpClient() calls that select neither a withFetch() nor a withXhr() backend. Angular 22 made FetchBackend the default HttpBackend; withXhr() keeps the previous XMLHttpRequest based backend, which is also the only one that reports upload progress.
org. openrewrite. angular. migration. add-with-xhrmod run . --recipe= org. openrewrite. angular. migration. add-with-xhrInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.