百度智能云

All Product Document

          Object Storage

          DeleteBucketCors

          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

          • Response header field

            None

          • Response element

            None

          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”.

          Example

          • Request example

               DELETE /?cors HTTP/1.1
               Host: BucketName.bj.bcebos.com
               Date: Wed, 06 Apr 2016 06:34:40 GMT
               Authorization: AuthorizationString
          • Response example

                HTTP/1.1 204 OK
                x-bce-request-id: 4db2b34d-654d-4d8a-b49b-3049ca786409
                Date: Wed, 06 Apr 2016 06:34:40 GMT
                Connection: close
                Server: BceBos  
          Previous
          PutBucketCors
          Next
          GetBucketCors