forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Jawei, Li <lijiawei5@huawei.com> Co-committed-by: Jawei, Li <lijiawei5@huawei.com>
54 lines
4.2 KiB
HTML
54 lines
4.2 KiB
HTML
<a name="EN-US_TOPIC_0125560432"></a><a name="EN-US_TOPIC_0125560432"></a>
|
|
|
|
<h1 class="topictitle1">DELETE Bucket CORS</h1>
|
|
<div id="body27186813"><p class="msonormal" id="EN-US_TOPIC_0125560432__p197516539327">You can use this operation to delete the CORS configuration of a bucket.</p>
|
|
<p class="msonormal" id="EN-US_TOPIC_0125560432__p23795519">After the CORS configuration is deleted, the bucket and objects in it cannot be accessed by requests from other websites.</p>
|
|
<p class="msonormal" id="EN-US_TOPIC_0125560432__p12833084">Only users granted the <strong id="EN-US_TOPIC_0125560432__b43354729">s3:PutBucketCORS</strong> permission can perform this operation. By default, only the bucket owner can perform this operation. The bucket owner can allow other users to perform this operation by granting them the permission.</p>
|
|
<div class="section" id="EN-US_TOPIC_0125560432__section57518732"><h4 class="sectiontitle">Request Syntax</h4><pre class="screen" id="EN-US_TOPIC_0125560432__screen32733069122832">DELETE /?cors HTTP/1.1
|
|
User-Agent: agent
|
|
Host: bucketname.obs.example.com
|
|
Accept: */*
|
|
Date: date
|
|
Authorization: authorization</pre>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0125560432__section47906541"><h4 class="sectiontitle">Request Parameters</h4><p id="EN-US_TOPIC_0125560432__p26589862">This request involves no parameters.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0125560432__section28505693"><h4 class="sectiontitle">Request Headers</h4><p id="EN-US_TOPIC_0125560432__p6295248">This request uses common headers. For details about common request headers, see section <a href="en-us_topic_0125560462.html">Common Request Headers</a>.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0125560432__section55224652"><h4 class="sectiontitle">Request Elements</h4><p id="EN-US_TOPIC_0125560432__p31176214">This request involves no elements.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0125560432__section46270551"><h4 class="sectiontitle">Response Syntax</h4><pre class="screen" id="EN-US_TOPIC_0125560432__screen26997610122811">HTTP/1.1 status_code
|
|
Server: Server Name
|
|
x-amz-request-id: request id
|
|
x-amz-id-2: id
|
|
x-reserved: amazon, aws and amazon web services are trademarks or registered trademarks of Amazon Technologies, Inc
|
|
Date: date </pre>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0125560432__section13781782"><h4 class="sectiontitle">Response Headers</h4><p id="EN-US_TOPIC_0125560432__p63490983">This response uses common headers. For details about common response headers, see section <a href="en-us_topic_0125560484.html">Common Response Headers</a>.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0125560432__section56927182"><h4 class="sectiontitle">Response Elements</h4><p id="EN-US_TOPIC_0125560432__p19621447">This response involves no elements.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0125560432__section42582590"><h4 class="sectiontitle">Error Responses</h4><p id="EN-US_TOPIC_0125560432__p45833411">No special error responses are returned. For details about error responses, see <a href="en-us_topic_0125560440.html#EN-US_TOPIC_0125560440__table30733758">Table 1</a>.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0125560432__section32323009"><h4 class="sectiontitle">Sample Request</h4><pre class="screen" id="EN-US_TOPIC_0125560432__screen6066468122732">DELETE /?cors HTTP/1.1
|
|
User-Agent: curl/7.19.0 (x86_64-suse-linux-gnu) libcurl/7.19.0 OpenSSL/0.9.8{ zlib/1.2.3 libidn/1.10
|
|
Host: bucketname.obs.example.com
|
|
Accept: */*
|
|
Date: Tue, 28 Apr 2015 09:34:51 +0000
|
|
Authorization: AWS D13E0C94E722DD69423C:YiZ7gMEMnxjYM32AjsCpoR4FpoI=</pre>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0125560432__section22471632"><h4 class="sectiontitle">Sample Response</h4><pre class="screen" id="EN-US_TOPIC_0125560432__screen16563110122750">HTTP/1.1 204 No Content
|
|
Server: OBS
|
|
x-amz-request-id: 400535B2BF32AD9B6B21873AF4D5A57D
|
|
x-amz-id-2: ihd0YbWuLj8XsU7IZKQFqK9KPoPean7wCQ2QYLqv9lkOCNr40+67DneNvK3Nfjt6
|
|
x-reserved: amazon, aws and amazon web services are trademarks or registered trademarks of Amazon Technologies, Inc
|
|
Date: Tue, 28 Apr 2015 09:34:51 GMT</pre>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0125560493.html">Operations on Buckets</a></div>
|
|
</div>
|
|
</div>
|
|
|