title: Excel file download using MS Edge
body: <p>My app creates an excel file, server side, from a database extraction. </p>
  
  <p>A post request sends parameters to the server that the server then uses to query the database.  </p>
  
  <p>The server uses these parameters to extract data convert the data to an excel file (xlsx), then saves the file with a certain file-name as per the parameters sent to the server. </p>
  
  <p>The server responds to the post request by sending the file-name to the browser. </p>
  
  <p>The browser then creates a link using the filename and other predefined parameters to download the file by the following instructions:</p>
  
  <pre><code>var link = 'http://host-name/path-to-file/excel-file.xlxs'; // the link that is created by the js in the browser
  window.location = link; // the file is downloaded
  </code></pre>
  
  <p>This works in chrome, firefox, opera and safari, in these browsers, the file downloads no problem. </p>
  
  <p>However; when running in Microsoft-edge, the file is not downloaded and this appears in the page.</p>
  
  <p><a href="https://i.stack.imgur.com/HKG8r.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HKG8r.png" alt="enter image description here"></a></p>