Firebase Storage: fetch() of a download URL fails with a CORS error
@devsingh05▲ 10 net votes
Displaying the image in an <img> works, but reading it with fetch or drawing it to a canvas needs CORS on the bucket. Create a cors.json allowing GET from your origins and apply it with gsutil cors set cors.json gs://<bucket> (or gcloud storage buckets update --cors-file). Changes take a minute or two to apply.