title: Set authorization header param in interceptor.module.ts
body: <p>I need to send an authorization token into every request's header and I can't find a proper way to set params into intercepetor.module.ts code.</p>
  
  <p>Here's an extract from my Angular interceptor.module.ts</p>
  
  <pre><code>intercept(
          req: HttpRequest&lt;any&gt;,
          next: HttpHandler,
      ): Observable&lt;HttpEvent&lt;any&gt;&gt; {
  
          console.warn("Loader Started - HTTP request: " + req.url);
  
          let dupReq = req.clone({
              setHeaders:{
                  'Content-Type' : 'application/json',
                  'Accept'       : 'application/json',
                  'Authorization': "Basic "+ myToken
              }
          });
  
          return next.handle(dupReq).pipe(
              map(event =&gt; {
                  return event;
              }),
              catchError(error =&gt; {
                  return Observable.throw(error);
              }),
              finalize(() =&gt; {
  
              })
          );
      }
  </code></pre>
  
  <p>When I go into Chrome's Network tab in debug mode, request's header had no change and it is not showing the 'authorization' param.</p>
  
  <p>I've tried to set the headers thru <code>headers.append()</code> method and it had no difference as well.</p>