Top "Angular-http-interceptors" questions

The interceptors are service factories that are registered with the `$httpProvider` by adding them to the `$httpProvider.

How to cancel current request in interceptor - Angular 4

As you know it's possible to use Interceptors in new versions of Angular 4. In mine, I want to cancel a …

angular angular-http-interceptors
Angular 5 Http Interceptors error when injecting service

I am receiving the following strange dependency injection behavior when using custom HttpInterceptors in angular 5+. The following simplified code works …

angular dependency-injection angular-http-interceptors
Angular httpClient interceptor error handling

after reading the documentation on angular about http client error handling, I still don't understand why I don't catch a 401 …

angular angular6 angular-http-interceptors angular-httpclient
Interceptor not working

Im trying to make a Interceptor in AngularJS. I'm quite new to AngularJS and found some examples of Interceptor, but …

javascript angularjs interceptor angular-http-interceptors
Show loading bar for every http request angular2

I am moving my app from angularjs to angular2. I was using Angular Loading Bar which is An automatic loading …

angular progress-bar loading angular-http-interceptors
Angular 5 Interceptor: TypeError: next.handle(...).do is not a function

I created an angular interceptor to check my auth tokens' validity. somehow, the do method is not recognized by angular. …

typescript angular5 angular-http-interceptors
Overload request headers and params with HttpClient get

In HttpClientModule, is there a method to pass headers and params to get request. import { HttpHeaders, HttpParams, HttpClient } from @angular/…

angular http-get angular-http angular-http-interceptors angular-httpclient
Angular HTTP Interceptor - Display spinner in multi-module app

I'm trying to display the ng4-loading-spinner spinner for HTTP calls made to my API. I based my code on …

angular angular5 angular-http-interceptors
HttpInterceptor handling 401 error does not return Observable

I am following this example: https://www.intertech.com/Blog/angular-4-tutorial-handling-refresh-token-with-new-httpinterceptor/ All works well, except the method handle401Error. …

angular angular-http-interceptors angular-httpclient
Angular 8 Intercept call to refresh token

I am trying to refresh access token if current access token is expired. I am sending multiple requests at one …

angular rxjs angular8 angular-http-interceptors refresh-token