angular 2 interceptor

Hi,Please help me with this.

var requestnew = request.clone({
Authorization: Bearer ${this.auth.getToken()} //token is : eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9
return next.handle(requestnew)

Using Cloning not able to set headers … always getting response from server 401 unauthorized error …

node .js 
console.log(req.header.Authorization) // getting undefined in console 
if(req.header(‘Authorization’) == ‘eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9’){

console.log(“next enetring”)

return res.status(401).json({message:‘Auth Fails’})

Hi @soodharshal,

Thanks for being part of the GitHub Community Forum! We’re glad you’re here.

Please provide more context, what you hope to accomplish and perhaps what you have already tried. This will help the community understand what you are trying to achieve and you’ll most likely get better engagement on your post.