import { Injectable } from "@angular/core" ; import { HttpInterceptor , HttpRequest , HttpHandler , HttpEvent } from "@angular/common/http" ; import { Observable } from "rxjs" ; @ Injectable ( ) export class AuthInterceptor implements HttpInterceptor { constructor ( ) { } intercept ( req , next ) { const authHeader = '49a5kdkv409fd39' ; const authReq = req . clone ( { headers : req . headers . set ( 'Authorization' , authHeader ) } ) ; return next . handle ( authReq ) ; } }