The Access-Control-Allow-Methods
response header specifies the method or methods allowed when accessing the resource in response to a preflight request.
Header type | Response header |
---|---|
Forbidden header name | no |
Syntax
Access-Control-Allow-Methods: <method>, <method>, ... Access-Control-Allow-Methods: *
Directives
- <method>
- Comma-delimited list of the allowed HTTP request methods.
*
(wildcard)- The value "
*
" only counts as a special wildcard value for requests without credentials (requests without HTTP cookies or HTTP authentication information). In requests with credentials, it is treated as the literal method name "*
" without special semantics.
Examples
Access-Control-Allow-Methods: POST, GET, OPTIONS Access-Control-Allow-Methods: *
Specifications
Specification | Status | Comment |
---|---|---|
Fetch The definition of 'Access-Control-Allow-Methods' in that specification. |
Living Standard | Initial definition |
Browser compatibility
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.
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Access-Control-Allow-Methods | Chrome Full support 4 | Edge Full support 12 | Firefox Full support 3.5 | IE Full support 10 | Opera Full support 12 | Safari Full support 4 | WebView Android Full support 2 | Chrome Android Full support Yes | Firefox Android Full support 4 | Opera Android Full support 12 | Safari iOS Full support 3.2 | Samsung Internet Android Full support Yes |
Wildcard (* ) | Chrome Full support 63 | Edge Full support 79 | Firefox Full support 69 | IE No support No | Opera Full support 50 | Safari No support No | WebView Android Full support 63 | Chrome Android Full support 63 | Firefox Android No support No | Opera Android Full support 46 | Safari iOS No support No | Samsung Internet Android Full support 8.2 |
Legend
- Full support
- Full support
- No support
- No support