title: Get "Content-Disposition" Header of a request with Axios
body: <p>I'm trying to get the 'Content-Disposition' Header of a request from api call by axios like this:</p>
  
  <pre><code>axios.get('Group/GetGroupObjectives', {
      params: { periodId, isPreliminary },
      responseType: 'arraybuffer',
    })
        .then((response) =&gt; {
          if (response) {
            response.request.getResponseHeader('Content-Disposition');
          } else {
            dispatch(docDownloadFailed());
          }
        })
  </code></pre>
  
  <p>When i get the header throws this error "Refused to get unsafe header "Content-Disposition""</p>
  
  <p>This problem is caused by Cors in the api, but i get all the headers needed for get the header correctly in the response header:</p>
  
  <pre><code>Access-Control-Allow-Origin:*
  Access-Control-Expose-Headers:*
  Access-Control-Request-Headers:*
  Cache-Control:no-cache
  Content-Disposition:attachment; filename="sample.xlsx"
  Content-Length:7965
  Content-Type:application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
  Date:Fri, 26 Jan 2018 14:35:38 GMT
  Expires:-1
  Pragma:no-cache
  Server:Microsoft-IIS/10.0
  X-AspNet-Version:4.0.30319
  X-Powered-By:ASP.NET
  X-SourceFiles:=?UTF-8?B?RDpcVGVhbV9Tb2Zhc2FcRXh0cmFuZXRcRXh
  </code></pre>
  
  <p>How do I get the response header correctly with axios call?</p>