Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
mohamedkhallouq
GitHub Repository: mohamedkhallouq/content
Path: blob/main/files/en-us/web/http/headers/access-control-request-method/index.md
6516 views
---
title: Access-Control-Request-Method slug: Web/HTTP/Headers/Access-Control-Request-Method 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 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.

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

{{Specifications}}

Browser compatibility

{{Compat}}

See also

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