title: JS fetch, not getting headers on response
body: <p>I'm making a request using fetch to wordpress api, but I get a empty headers object on the response, anyone knows why?</p>
  
  <p>here's my fetch action</p>
  
  <pre><code>export const getJobs = () =&gt; {
    return dispatch =&gt; {
      fetch(endpoints.jobs)
        .then(res =&gt; res.json())
        .then(data =&gt; dispatch(setJobs(data)))
    }
  };
  </code></pre>
  
  <p>and here's the object that I get before doing res.json</p>
  
  <pre><code>body: (...)
  bodyUsed: false
  headers: {}
  ok: true
  redirected: false
  status: 200
  statusText: "OK"
  type: "cors"
  url: "url"
  </code></pre>
  
  <p>any ideas on how I can get all the headers from the response?</p>