I tried to create an HttpInterceptor to add some headers for authorization to every http that happens. I need to get the headers from a service called
Remove following from AuthService -
import { HttpClient } from '@angular/common/http';
The reason is - HttpClient using interceptor internally and interceptor using AuthService and AuthService is using HttpClient. thus it gives "cyclic dependency" error.