file from a google firebase bucket on the frontend.
                  
                  
                  
                  
                  
                  solution 1: <a download href="url">...</a> – doesnt work because href needs to be same origin and firebase storage is not the same origin than my frontend
                  
                  
                  
                  
                  
                  solution 2: download a blob, then save that – file size limitations, RAM limitations, overcomplicated solution (it seems)
                  
                  
                  
                  
                  
                  solution 3: same as downloading a blob, but save it with a writable stream – browser support, even more complicated
                  
                  
                  
                  
                  
                  is there any solution you can think of?
                  
                  
                
You can configure the CORS headers: https://firebase.google.com/docs/storage/web/download-files#cors_configuration
Обсуждают сегодня