CORS error when trying to download from GCS

时间:2019-01-15 18:18:32

标签: javascript angular google-cloud-storage firebase-storage

So i have created a firebase project. The project has a module where a user can upload files to firebase storage. According to the requirements, I have to manipulate the image uploaded to the storage and create a new image. For this purpose, I have deployed a Firebase function which manipulate the image and create a new one and create a signed url for download. Now on the client side, when I try to download the image, it throws a CORS error. I googled the problem and was only able to know this that it's because im requesting to download the image from the different domain. How can I be able to download the image without getting this error or without opening the image in new window?

0 个答案:

没有答案