DeleteBucketCors
Last Updated:2021-12-08
Interface Description
DeleteBucketCors is used to disable the CORS feature of the specified bucket and clear all rules.
Permission Description
Only the bucket owner and the user with the FULL_CONTROL permission can delete the CORS rules.
Request
-
Request syntax
DELETE /?cors HTTP/1.1 Host: <BucketName>.bj.bcebos.com Date: Wed, 06 Apr 2016 06:34:40 GMT Authorization: <AuthorizationString>
-
Request parameters
None
-
Request header field
No special header parameters.
-
Request element
None
Response
Considerations
- When the corresponding bucket does not exist, it returns “404 Not Found: NoSuchBucket”.
- When the user has no permission to delete the CORS rules, it returns “403 Forbidden: AccessDenied”.
- When there is no CORS rule in the corresponding bucket, it returns “204 No Content”.