This gist shows you how to configure a Google Cloud Storage bucket CORS for use with Rails' ActiveStorage (or any other direct-upload mechanism).
- Update the policy JSON to reflect your setup (likely only changing the
origin
parameter) - Run this:
$ gsutil cors set ./cors-json-file.json gs://<bucket-name>