I know it has been a long time since this question was asked, but now the google repository allows us to change CORS configurations.
I had the same problem with CORS, and I took the following steps to solve it.
- Create a JSON file with CORS configurations cors-config.json
[ { "origin": ["*"], "method": ["GET"], "maxAgeSeconds": 3000, "responseHeader": ["Authorization", "Content-Range", "Accept", "Content-Type", "Origin", "Range"] } ]
2. Download this file to the trash
gsutil cp cors-config.json gs:
3. Now update the cors bucket configuration
gsutil cors set cors-config.json gs:
Updated CORS configurations. Now you can see the updated CORS configurations in the bucket by running this command.
gsutil cors get gs:
Google Doc on CORS Configuration
source share