View Feed
Coffee Room
Discuss anything here - everything that you wish to discuss with fellow engineers.
12915 Members
Join this group to post and comment.
Kaustubh Katdare
Kaustubh Katdare • Jun 7, 2018

Is file download over Ajax call supported?

I'm reading that file downloads over ajax call isn't supported by modern browsers. There seems to be a security risk associated with it; and I'm curious to learn more. Here's the scenario I'm currently working on -

  1. User clicks on the 'Download' button
  2. An ajax call is made to the server. The server then looks for the file on CDN (which uses a 'data' subdomain). 
  3. Server fetches the file locally and serves it to the user. 

But this doesn't really work. I'm looking for reason 

Would really appreciate if someone could explain this a bit in more detail. Thank you in advance. 

Share this content on your social channels -