It turns out our issue was an automated terraform script that was running and resetting the cors configuration we had manually applied. Itβs working again now. We used a file that looks like:
[
{
"origin": ["https://retool.ourcompany.com"],
"responseHeader": ["Content-Type", "x-goog-acl"],
"method": ["GET", "HEAD","POST", "PUT", "DELETE"],
"maxAgeSeconds": 3600
}
]
We applied it using
gsutil cors set path/to/cors-file.json gs://our-bucket