百度智能云

All Product Document

          Object Storage

          Disable a CORS Rule Set on Specified Bucket

          Interface Description

          This interface 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.

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

          Request URI

          DELETE /v1/{bucketName}/?cors

          Request Body Parameters

          None

          Response Body Parameters

          None

          Request Example

          None

          Response Example

          HTTP/1.1 200 OK
          <Common response header>
          
          { }

          Error Code

          Refer to the universal error code.

          Previous
          Copyright Protection
          Next
          Get a CORS Rule Set on Specified Bucket