Disable Cross-Origin Resource Sharing (CORS) Rule on a Specified Bucket
Updated at:2025-11-03
API description
This API disables the specified bucket's CORS function and clears all associated rules.
Permission description
Only bucket owners and users with FULL_CONTROL permissions are authorized to delete CORS rules.
Notes
- If the specified bucket does not exist, a 404 Not Found error will be returned with the code "NoSuchBucket."
- If permission to delete CORS rules is denied, a 403 Forbidden error will be returned with the code "AccessDenied."
- If the specified bucket had no prior CORS rules, a 204 No Content response will be returned.
Request URI
DELETE /v1/{bucketName}/?cors
Parameters of request body
None
Response body parameters
None
Request example
None
Response example
JSON
1HTTP/1.1 200 OK
2 <Common response headers>
3{ }
Error code
Please refer to the general error codes
