Set Scaleway bucket CORS rules (full replace)
scaleway_s3_put_bucket_corsReplace a Scaleway S3 bucket's CORS rules with a new set. Define allowed origins and methods to control cross-origin browser access; any existing rules not in the new list are removed.
Instructions
Set a bucket's CORS rules. FULL-REPLACE semantics: the provided list becomes the complete rule set - existing rules not in the list are removed. This loosens or restricts browser cross-origin access to the bucket.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rules | Yes | The COMPLETE CORS rule set to apply. | |
| bucket | Yes | Bucket name. | |
| region | No | Region to operate in. Defaults to the server's configured region (fr-par). |