s3_setup_cors
Set up CORS rules on an S3 bucket to enable cross-origin browser access by specifying allowed origins, methods, and preflight cache duration.
Instructions
Configure S3 CORS rules for cross-origin browser access (Pro)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"bucket_name": "<bucket_name>",
"allowed_origins": "<allowed_origins>",
"allowed_methods": "<allowed_methods>"
},
"name": "s3_setup_cors"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | No | API key for authentication | |
| max_age | No | Preflight cache duration in seconds | |
| bucket_name | Yes | S3 bucket name | |
| allowed_methods | Yes | Allowed HTTP methods | |
| allowed_origins | Yes | Allowed origin domains |