title: Angular 8 - httpClient Get method transforms to Options method
body: <p>I am trying to send Get request to my server(Microsoft 2012). I have already added <a href="https://stackoverflow.com/a/50694988/5736794" title="adding headers to get method">this solution</a>. But in this is solution my get request transformed to Options method. </p>
  
  <pre class="lang-js prettyprint-override"><code>const httpOptions = {
    headers: new HttpHeaders({
      'Content-Type': 'application/vnd.sas.datamgmt.jobflow.metadata+json; charset=utf-8',
      'Authorization': 'Basic' + btoa('username:password')
    })
  };
  </code></pre>
  
  <p>I also added:</p>
  
  <pre class="lang-js prettyprint-override"><code>    httpOptions.headers.set('username', 'password');
      httpOptions.headers.append('Access-Control-Allow-Origin', '*');
      httpOptions.headers.append('Access-Control-Allow-Credentials', 'true');
      httpOptions.headers.append('Access-Control-Allow-Methods', 'GET,POST,OPTIONS');
      this.typesOfDBs = this.http.get&lt;Info[]&gt;(this.ROOT_URL, httpOptions);
  </code></pre>
  
  <p>I watched my request and I saw the request is now Options request. How can I handle it and send request as Get method?</p>