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 preflight request.
Tipo de cabecera | Response header |
---|---|
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 |
---|---|---|
Fetch La definición de 'Access-Control-Allow-Methods' en esta especificación. |
Living Standard | Initial definition |
Compatibilidad de navegador
BCD tables only load in the browser
The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Notas de compatibilidad
- The wildcard value (*) that is mentioned in the latest specification, is not yet implemented in browsers:
- Chromium: Issue 615313
- Firefox: error 1309358
- Servo: Issue 13283