Created
March 6, 2021 08:37
-
-
Save tuhinpal/59c743bcbf72a222d598a3e98522e397 to your computer and use it in GitHub Desktop.
Setup Cors for Firebase Storage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "Enter the cloud-storage-bucket URL (Starts with gs://): " | |
read cloud_storage_bucket | |
echo '[{"origin":["*"],"method":["GET"],"maxAgeSeconds":3600}]' > cors.json | |
gsutil cors set cors.json $cloud_storage_bucket | |
rm cors.json | |
echo "CORS Setted, Now go back to https://github.com/cachecleanerjeet/firecdn" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment