Http interceptor

Hello

I am using the capacitor-community/http library to fix the CORS related issue. Now I have to intercept all the Http.request() so as to add some authorization packet in the header. So does this library provides any interceptor like angular/common/http library provides. If yes then how to implement the same.

Thanks

While you wait for more answers, how about fixing the CORS problems on the server side so you can just use ordinary HttpClient? That way you get to use interceptors as well as all the rest of the features of Angular’s HTTP client.

1 Like