Angular - HTTP Client
What is wrong with this interceptor code snippet?
intercept(req, next) {
const modifiedReq = req.clone();
modifiedReq.headers.set('X-Custom', 'value');
return next.handle(modifiedReq);
}