Posts

  • How to use HttpClient in APP_INITIALIZER without interceptors in Angular

    How to use HttpClient in APP_INITIALIZER without interceptors in Angular

    Solution 1 The easiest solution is to create plain HttpClient using HttpBackend.This will completely bypass all interceptors: Solution 2 Sometimes you still want to use interceptors, but just want to disable some parts of them. To do this we can pass custom header to the request and use it in the interceptors we want to…

    …read more