title: Angular 6 set withCredentials to true with every HttpClient call
body: <p>If you want the credentials (cookie authentication token) to be passable through a call, you need to add <code>{ withCredentials: true }</code> in your httpclient call. Something like this:</p>
  
  <pre><code>import { HttpClient  } from '@angular/common/http';
  ...
  constructor(private httpclient: HttpClient) { }
  
  this.httpclient.get(url, { withCredentials: true })
  </code></pre>
  
  <p>I would just like to know if there is a way to preset <code>{ withCredentials: true }</code> with every single call. I don't want to have to add <code>{ withCredentials: true }</code> every time I make a call.</p>
  
  <p>Here is a related question, but I am not sure if this works with <code>HttpClient</code>?</p>