title: Save Excel file from API request using FileSaver in ReactJS
body: <p>Im my React app, I'm querying an API to retrieve an export of the database under excel format. The call is performed inside my sagas. I then try to save the response of the API with FileSaver</p>
  
  <pre><code>const {headers, data} = response;
  FileSaver.saveAs(new Blob([data], {type: headers['content-type']}), filename);
  </code></pre>
  
  <p>The headers of the response are as follow</p>
  
  <pre><code>{
      content-disposition: "attachment; filename="export.xlsx"; filename*=utf-8''export.xlsx;",
      content-type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
  }
  </code></pre>
  
  <p>When I call the API with Postman and save the file, I can then open it like any standard excel file. But when I save it with FileSaver I cannot open it. It's just hexadecimal encoding. What am I missing to save the file the right way ?</p>