title: superagent set custom request headers es6 not Access-Control-Request-Headers
body: <p>I know this is addressed in <a href="https://stackoverflow.com/questions/31059462/how-can-i-inject-a-custom-http-header-into-every-request-that-superagent-makes">this</a> post but I am still having trouble setting a custom header using ES6 and am wondering if anyone has run into this issue?  The problem is when is set the header using .set I only set the Access-Control-Request-Header to the label I want to set it and the value is lost. I want to set a custom field on the request header using superagent and not sure how.</p>
  <p>Let's say I am running this in my app (client)</p>
  <pre><code>import ajax from 'superagent'
  
  ajax.get(baseURL + &quot;/query/&quot;)
      .query({q: &quot;SELECT Id FROM USER WHERE Id=&quot; + id})
      .set('X-Authorization', 'Oauth ' + token)
      .set('Content-Type', 'application/json')
      .end((error, response) =&gt; {
          if(errro) { console.log(error); }
      }
  </code></pre>
  <p>the header the get request makes contains:</p>
  <pre><code>Access-Control-Request-Headers:content-type, x-authorization
  </code></pre>
  <p>under Request Headers in the network tab of the browser debugger.  I want to set the headers of the get so that under Request Headers in the network tab of the browser dubugger I see:</p>
  <pre><code>X-Authorization:  some_token
  Content-Type: application/json
  </code></pre>
  <p>Does anyone have any ideas on how I can set the Request Headers to have any field/value I want using ES6 and superagent?</p>
  <p>thanks to all in advanced!</p>