跳转到主要内容

Allow header

The HTTP Allow {{Glossary("response header")}}header lists the set of request methods supported by a resource. This header must be sent if the server responds with a {{HTTPStatus("405", "405 Method Not Allowed")}}Allowed status code to indicate which request methods can be used instead. An empty Allow value indicates that the resource allows no request methods, which might occur temporarily for a given resource.

Header type {{Glossary("[Response header")}}header](https://developer.mozilla.org/en-US/docs/Glossary/Response%20header)

Syntax

Allow: <http-methods>

Directives

  • <http-methods>
    • : A comma-separated list of allowed request methods supported by a resource.

Examples

Allow: GET, POST, HEAD

Specifications

{{Specifications}}

See also