doc-exports/docs/obs/api-ref/obs_04_0076.html
Jawei, Li f1cb839979 OBS api-ref 2.0.38.SP5
Reviewed-by: gtema <artem.goncharov@gmail.com>
Co-authored-by: Jawei, Li <lijiawei5@huawei.com>
Co-committed-by: Jawei, Li <lijiawei5@huawei.com>
2022-11-03 11:54:51 +00:00

72 lines
4.4 KiB
HTML

<a name="obs_04_0076"></a><a name="obs_04_0076"></a>
<h1 class="topictitle1">Deleting the CORS Configuration of a Bucket</h1>
<div id="body48070570"><div class="section" id="obs_04_0076__section5584184924715"><h4 class="sectiontitle">Functions</h4><p class="msonormal" id="obs_04_0076__p37043603">This operation is used to delete the CORS configuration of a bucket. 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="obs_04_0076__p64956974">To perform this operation, you must have the <strong id="obs_04_0076__b1384594982714">PutBucketCORS</strong> permission.</p>
</div>
<div class="section" id="obs_04_0076__section47741860"><h4 class="sectiontitle">Request Syntax</h4><div class="codecoloring" codetype="Xml" id="obs_04_0076__screen1402126"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre>1
2
3
4</pre></div></td><td class="code"><div class="highlight"><pre><span></span>DELETE /?cors HTTP/1.1
Host: bucketname.obs.region.example.com
Date: date
Authorization: authorization
</pre></div>
</td></tr></table></div>
</div>
<div class="section" id="obs_04_0076__section27023556"><h4 class="sectiontitle">Request Parameters</h4><p class="msonormal" id="obs_04_0076__p41361050">This request contains no parameter.</p>
</div>
<div class="section" id="obs_04_0076__section41885417"><h4 class="sectiontitle">Request Headers</h4><p class="msonormal" id="obs_04_0076__p61910724">This request uses common headers. For details, see <a href="obs_04_0007.html#obs_04_0007__table25197309">Table 3</a>.</p>
</div>
<div class="section" id="obs_04_0076__section41424434"><h4 class="sectiontitle">Request Elements</h4><p class="msonormal" id="obs_04_0076__p35761394">This request involves no elements.</p>
</div>
<div class="section" id="obs_04_0076__section37275594"><h4 class="sectiontitle">Response Syntax</h4><div class="codecoloring" codetype="Xml" id="obs_04_0076__screen10991798"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre>1
2
3
4</pre></div></td><td class="code"><div class="highlight"><pre><span></span>HTTP/1.1 status_code
Date: date
Content-Type: application/xml
Content-Length: length
</pre></div>
</td></tr></table></div>
</div>
<div class="section" id="obs_04_0076__section67044897"><h4 class="sectiontitle">Response Headers</h4><p class="msonormal" id="obs_04_0076__p1512332591013">The response to the request uses common headers. For details, see <a href="obs_04_0013.html#obs_04_0013__d0e686">Table 1</a>.</p>
</div>
<div class="section" id="obs_04_0076__section66533169"><h4 class="sectiontitle">Response Elements</h4><p class="msonormal" id="obs_04_0076__p14489975">This response involves no elements.</p>
</div>
<div class="section" id="obs_04_0076__section61927609"><h4 class="sectiontitle">Error Responses</h4><p class="msonormal" id="obs_04_0076__p32837330">No special error responses are returned. For details about error responses, see <a href="obs_04_0115.html#obs_04_0115__d0e843">Table 2</a>.</p>
</div>
<div class="section" id="obs_04_0076__section14482163815396"><h4 class="sectiontitle">Sample Request</h4><div class="codecoloring" codetype="Xml" id="obs_04_0076__screen8484163863919"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre>1
2
3
4
5
6</pre></div></td><td class="code"><div class="highlight"><pre><span></span>DELETE /?cors HTTP/1.1
User-Agent: curl/7.29.0
Host: examplebucket.obs.region.example.com
Accept: */*
Date: WED, 01 Jul 2015 03:56:41 GMT
Authorization: OBS H4IPJX0TQTHTHEBQQCEC:mKUs/uIPb8BP0ZhvMd4wEy+EbiI=
</pre></div>
</td></tr></table></div>
</div>
<div class="section" id="obs_04_0076__section76081155815"><h4 class="sectiontitle">Sample Response</h4><div class="codecoloring" codetype="Xml" id="obs_04_0076__screen8485113814"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre>1
2
3
4
5</pre></div></td><td class="code"><div class="highlight"><pre><span></span>HTTP/1.1 204 No Content
Server: OBS
x-obs-request-id: BF26000001643639F290185BB27F793A
x-obs-id-2: 32AAAQAAEAABSAAgAAEAABAAAQAAEAABCSLWMRFJfckapW+ktT/+1AnAz7XlNU0b
Date: WED, 01 Jul 2015 03:56:41 GMT
</pre></div>
</td></tr></table></div>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="obs_04_0070.html">Static Website Hosting</a></div>
</div>
</div>