DevKits

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, OPTIONS

Specification

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

Work with this header