Add custom headers to 'request' : <p>I am proxying my api via following setup in my express config</p>

<pre><code>  // Proxy api calls
  app.use('/api', function (req, res) {
    let url = config.API_HOST + req.url
    req.pipe(request(url)).pipe(res)
  })
</code></pre>

<p><code>config.API_HOST</code> in here resolves to my api url and <code>req.url</code> is some endpoint i.e. <code>/users</code> I tried following documentation on npm for <a href="https://www.npmjs.com/package/request#custom-http-headers" rel="noreferrer">request</a> and set up my headers like so</p>

<pre><code>  // Proxy api calls
  app.use('/api', function (req, res) {
    let options = {
      url: config.API_HOST + req.url,
      options: { 'mycustomheader': 'test' }
    }
    req.pipe(request(options)).pipe(res)
  })
</code></pre>

<p>But I am not able to see my custom headers in chrome dev tools under Network.</p>
