title: Axios Excel file download using POST results in corrupted file
body: <p>I was using Axios to download a file provided by a GET endpoint previously. The endpoint has changed and is now a POST, however the parameters are not required. I'm updating the original download method, but am getting a corrupted file returned.</p>
  
  <pre><code>downloadTemplate() {
          axios.post(DOWNLOAD_TEMPLATE_URL,
              {
                  responseType: 'blob',
                  headers: {
                      'Content-Disposition': "attachment; filename=template.xlsx",
                      'Content-Type': 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
                  }
              })
              .then((response) =&gt; {
                  const url = window.URL.createObjectURL(new Blob([response.data]));
                  const link = document.createElement('a');
                  link.href = url;
                  link.setAttribute('download', 'template.xlsx');
                  document.body.appendChild(link);
                  link.click();
              })
              .catch((error) =&gt; console.log(error));
      }
  </code></pre>
  
  <p>I'm not sure if the issue is with the <code>responseType</code>, <code>headers</code>, or how the response is handled or all of the above. I've tried various options with no luck so far. Any suggestions would be greatly appreciated!</p>
  
  <p>I have been able to download the file using Postman so I know the file served by the endpoint is fine. I just can't sort out the params to do this in my React code.</p>