So I'm sending an AJAX post request to my server so that I can get information and generate a file. I am able to generate the file and I can even console it in the done function using console.log(data).
I'm just not sure how to go about downloading it; I tried the solution of creating element and using js to click it but it did not seem to work.
Additional info:
I am sending the Ajax request using Jquery. The web application is a python flask application.