W3cubDocs

/HTTP

Allow

The Allow header lists the set of methods support by a resource.

This header must be sent if the server responds with a 405 Method Not Allowed status code to indicate which request methods can be used. An empty Allow header indicates that the resource allows no request methods, which might occur temporarily for a given resource, for example.

Syntax

Allow: <http-methods>

Directives

<http-methods>
The list of allowed HTTP request methods.

Examples

Allow: GET, POST, HEAD

Specifications

Specification Title
RFC 7231, section 7.4.1: Allow Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content

See also

© 2005–2017 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Allow