--- title: Access-Control-Allow-Methods slug: Web/HTTP/Headers/Access-Control-Allow-Methods translation_of: Web/HTTP/Headers/Access-Control-Allow-Methods ---
{{HTTPSidebar}}

La cabecera de respuesta Access-Control-Allow-Methods especifica el método o los métodos aceptados cuando se accede al recurso en respuesta de un {{glossary("preflight request")}}.

Tipo de cabecera {{Glossary("Response header")}}
{{Glossary("Forbidden header name")}} no

Sintaxis

Access-Control-Allow-Methods: <method>, <method>, ...

Directivas

<método>
Comma-delimited list of the allowed HTTP request methods.

Ejemplos

Access-Control-Allow-Methods: POST, GET, OPTIONS

Especificaciones

Specification Status Comment
{{SpecName('Fetch','#http-access-control-allow-methods', 'Access-Control-Allow-Methods')}} {{Spec2("Fetch")}} Initial definition

Compatibilidad de navegador

{{Compat("http.headers.Access-Control-Allow-Methods")}}

Notas de compatibilidad

See also