Angular 6 Http Interceptors, request headers not modified
问题 I created an interceptor to add an authorization header to each request sent by the client, here is the code : import { HttpInterceptor, HttpRequest, HttpHandler, HttpHeaderResponse, HttpSentEvent, HttpProgressEvent, HttpResponse, HttpUserEvent, HttpEvent, HttpHeaders } from "@angular/common/http"; import { Observable } from "rxjs"; import { Injectable } from "@angular/core"; @Injectable() export class AuthenticationInterceptor implements HttpInterceptor { intercept(req: HttpRequest<any>,