jgudo / ecommerce-react

eCommerce web application using React, Redux, Redux-Saga, Firebase and SASS.
https://salinaka-ecommerce.web.app
Apache License 2.0
1.14k stars 628 forks source link

How to run with localhost and remove CORS? #61

Open sangolariel opened 1 year ago

sangolariel commented 1 year ago

acess to XMLHttpRequest at 'https://firebasestorage.googleapis.com/v0/b/bytex-ecommerce-dev.appspot.com/o?name=products%2FufTpyI6FflH0tLuuHBn1' from origin 'http://127.0.0.1:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: It does not have HTTP ok status.

dan200110 commented 6 months ago

I used this and it worked for me: https://stackoverflow.com/questions/37760695/firebase-storage-and-access-control-allow-origin