Revision 1129507 of Access-Control-Request-Method

  • Revision slug: Web/HTTP/Headers/Access-Control-Request-Method
  • Revision title: Access-Control-Request-Method
  • Revision id: 1129507
  • Created:
  • Creator: fscholz
  • Is current revision? No
  • Comment new page

Revision Content

{{HTTPSidebar}}

The Access-Control-Request-Method request header is used when issuing a preflight request to let the server know which HTTP method will be used when the actual request is made.

Header type {{Glossary("Request header")}}
{{Glossary("Forbidden header name")}} yes

Syntax

Access-Control-Request-Method: <method>

Directives

<method>
One of the HTTP request methods, for example {{HTTPMethod("GET")}}, {{HTTPMethod("POST")}}, or {{HTTPMethod("DELETE")}}.

Examples

Access-Control-Request-Method: POST

Specifications

Specification Status Comment
{{SpecName('Fetch','#http-access-control-request-method', 'Access-Control-Request-Method')}} {{Spec2("Fetch")}}  

Browser compatibility

{{Compat}}

See also

  • {{HTTPHeader("Access-Control-Request-Headers")}}

Revision Source

<div>{{HTTPSidebar}}</div>

<p>The <strong><code>Access-Control-Request-Method</code></strong> request header is used when issuing a preflight request to let the server know which <a href="/en-US/docs/Web/HTTP/Methods">HTTP method</a> will be used when the actual request is made.</p>

<table class="properties">
 <tbody>
  <tr>
   <th scope="row">Header type</th>
   <td>{{Glossary("Request header")}}</td>
  </tr>
  <tr>
   <th scope="row">{{Glossary("Forbidden header name")}}</th>
   <td>yes</td>
  </tr>
 </tbody>
</table>

<h2 id="Syntax">Syntax</h2>

<pre class="syntaxbox">
Access-Control-Request-Method: &lt;method&gt;
</pre>

<h2 id="Directives">Directives</h2>

<dl>
 <dt>&lt;method&gt;</dt>
 <dd>One of the <a href="/en-US/docs/Web/HTTP/Methods">HTTP request methods</a>, for example {{HTTPMethod("GET")}}, {{HTTPMethod("POST")}}, or {{HTTPMethod("DELETE")}}.</dd>
</dl>

<h2 id="Examples">Examples</h2>

<pre>
Access-Control-Request-Method: POST</pre>

<h2>Specifications</h2>

<table class="standard-table">
 <tbody>
  <tr>
   <th scope="col">Specification</th>
   <th scope="col">Status</th>
   <th scope="col">Comment</th>
  </tr>
  <tr>
   <td>{{SpecName('Fetch','#http-access-control-request-method', 'Access-Control-Request-Method')}}</td>
   <td>{{Spec2("Fetch")}}</td>
   <td>&nbsp;</td>
  </tr>
 </tbody>
</table>

<h2 id="Browser_compatibility">Browser compatibility</h2>

<p class="hidden">The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out <a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> and send us a pull request.</p>

<p>{{Compat}}</p>

<h2 id="See_also">See also</h2>

<ul>
 <li>{{HTTPHeader("Access-Control-Request-Headers")}}</li>
</ul>
Revert to this revision