Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. HTTP
  3. Reference
  4. Headers
  5. Access-Control-Allow-Methods

Access-Control-Allow-Methods header

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since ⁨July 2015⁩.

The HTTPAccess-Control-Allow-Methodsresponse header specifies one or moreHTTP request methods allowed when accessing a resource in response to apreflight request.

Header typeResponse header

Syntax

http
Access-Control-Allow-Methods: <method>, <method>, …Access-Control-Allow-Methods: *

Directives

<method>

A comma-separated list of the allowed request methods.GET,HEAD, andPOST are always allowed, regardless of whether they are specified in this header, as they are defined asCORS-safelisted methods.

* (wildcard)

All HTTP methods.It has this meaning only for requests without credentials (requests withoutHTTP cookies or HTTP authentication information). In requests with credentials, it istreated as the literal method name* without special semantics.

Examples

http
Access-Control-Allow-Methods: PUT, DELETEAccess-Control-Allow-Methods: *

Specifications

Specification
Fetch
# http-access-control-allow-methods

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp