Setting the bucket CORS header
Some browser operations require the domain to be whitelisted by the CORS header. We setup firebase to whitelist our domain by providing a cors.json
config file to gsutil
.
[
{
"origin": ["https://mytale.io", "http://localhost:5173"],
"method": ["GET"],
"maxAgeSeconds": 3600
}
]
gsutil cors set cors.json gs://mytale.firebasestorage.app