> ## Documentation Index
> Fetch the complete documentation index at: https://developers.telnyx.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Put bucket CORS

> Set up CORS rules for your Telnyx Cloud Storage buckets with this guide on using JSON files and AWS S3 API commands.

# PutBucketCors

## Example PutBucketCors request

### Prepare a JSON file like this

```json theme={null}
{
  "CORSRules": [
    {
      "AllowedOrigins": ["http://www.example.com"],
      "AllowedMethods": ["PUT", "POST", "DELETE"],
      "AllowedHeaders": ["*"]
    },
    {
      "AllowedOrigins": ["*"],
      "AllowedMethods": ["GET"]
    }
  ]
}
```

### Then apply it to the target bucket

```bash theme={null}
user@host % aws s3api put-bucket-cors --bucket my_bucket --cors-configuration file://cors.json
```
