Skip to content

Instantly share code, notes, and snippets.

@smddzcy
Created October 20, 2019 22:34
Show Gist options
  • Save smddzcy/b29b8ebb474fc9aad494b69e38740859 to your computer and use it in GitHub Desktop.
Save smddzcy/b29b8ebb474fc9aad494b69e38740859 to your computer and use it in GitHub Desktop.
Set IBM COS (Cloud Object Storage) bucket CORS policy
Link: https://cloud.ibm.com/docs/services/cloud-object-storage/cli?topic=cloud-object-storage-curl#curl-list-buckets
Policy to add: <CORSConfiguration><CORSRule><AllowedMethod>PUT</AllowedMethod><AllowedMethod>POST</AllowedMethod><AllowedMethod>DELETE</AllowedMethod><AllowedMethod>GET</AllowedMethod><AllowedOrigin>*</AllowedOrigin><AllowedHeader>*</AllowedHeader></CORSRule></CORSConfiguration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment