r/javascript • u/aapollis • Mar 29 '21
Download files behind JWT-authenticated routes with no extra libraries, using object URLs
https://blog.theodo.com/2021/03/authenticated-file-download-with-javascript/
6
Upvotes
1
u/Yesterdave_ Mar 31 '21
What about large files? Won't this just fill the browser's memory? Could be problematic on mobile devices.
What about the progress bar that is literally free in regular downloads?
3
u/[deleted] Mar 29 '21
Just use a cookie with secure, same site strict, and http only to store the JWT and just provide a normal file download link.