CORS · Response header
Access-Control-Allow-Methods
Which HTTP methods are allowed on the cross-origin resource.
What is Access-Control-Allow-Methods?
Sent in response to a CORS preflight (OPTIONS request) to indicate which methods the actual request may use.
Typical usage
Set on OPTIONS preflight responses.
Examples
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONSSpecification
Fetch Standard §CORS
Frequently asked questions
What is the Access-Control-Allow-Methods HTTP header?
Sent in response to a CORS preflight (OPTIONS request) to indicate which methods the actual request may use.
Is Access-Control-Allow-Methods a request or response header?
Access-Control-Allow-Methods is a response header — the server sends it to the client. Set on OPTIONS preflight responses.
What does a Access-Control-Allow-Methods header look like?
A typical Access-Control-Allow-Methods header looks like: Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS.
Related headers
Access-Control-Allow-Origin
Which origins may read this response cross-origin.
Access-Control-Allow-Headers
Which request headers may be used in the actual cross-origin request.
Access-Control-Allow-Credentials
Whether cookies and Authorization can be sent cross-origin.
Access-Control-Max-Age
How long the browser may cache the preflight response.
Origin
The origin (scheme + host + port) of the request.