-
Notifications
You must be signed in to change notification settings - Fork 22.4k
/
index.md
57 lines (42 loc) · 1.28 KB
/
index.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
---
title: Access-Control-Request-Method
slug: Web/HTTP/Headers/Access-Control-Request-Method
page-type: http-header
browser-compat: http.headers.Access-Control-Request-Method
---
{{HTTPSidebar}}
The **`Access-Control-Request-Method`** request header is used
by browsers when issuing a {{glossary("preflight request")}}, to let the server know
which [HTTP method](/en-US/docs/Web/HTTP/Methods) will be used when the
actual request is made. This header is necessary as the preflight request is always an
{{HTTPMethod("OPTIONS")}} and doesn't use the same method as the actual request.
<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>
## Syntax
```http
Access-Control-Request-Method: <method>
```
## Directives
- \<method>
- : One of the [HTTP request methods](/en-US/docs/Web/HTTP/Methods), for
example {{HTTPMethod("GET")}}, {{HTTPMethod("POST")}}, or {{HTTPMethod("DELETE")}}.
## Examples
```http
Access-Control-Request-Method: POST
```
## Specifications
{{Specifications}}
## Browser compatibility
{{Compat}}
## See also
- {{HTTPHeader("Access-Control-Request-Headers")}}