Download files from GridFS stream / React Front End

I’ve set up a GridFS stream that serves zip files, if I type in the API url in the browser the zip file downloads onto my computer, which is what I want to happen. However when I do a get request from the front end React app, I get back a data object and no download effect. I’ve been able to get the download working using window.location.href but i’ve tested this in production and it just sends me to that localhost URL (which doesn’t exist in production). Just looking to get some insight on this, my goal is the user can click a download button and the zip file gets sent to the user and starts downloading. Thanks!!