Google Cloud Storage Upload Configuration
Add your GCS upload_credentials
If you’re using a GCS Source, you can add the Storage Object Admin
role from GCS’s role list. After you add the role to the user, you must generate the interoperability key by going to the Settings page in your console, then generating the key in the Interoperability tab.
Update your bucket’s CORS configuration
Please update your CORS configuration allowing the PUT method and the Content-Type header from https://dashboard.imgix.com
. For GCS you can do this programmatically or with their CLI tool. See GCS documentation for more information.
Example gsutil
CLI command to set CORS configuration:
gsutil cors set <CORS_JSON_FILE> gs://<BUCKET_NAME>
Example CORS JSON configuration file
[
{
"origin": ["https://dashboard.imgix.com"],
"method": ["PUT"],
"responseHeader": ["Content-Type"],
"maxAgeSeconds": 3600
}
]