How To Send A Downloadable Pdf To Javascript Client Via Node.js?
I am working on a project where a pdf is dynamically created at the node server and needs to be sent to the javascript client where it should open a download prompt on the browser.
Solution 1:
Try adding the Content-Disposition: attachment header, like this:
Content-Disposition: attachment; filename="thePdf.pdf"
Post a Comment for "How To Send A Downloadable Pdf To Javascript Client Via Node.js?"