OPTIONS

The HTTP method that asks a server which communication options a resource supports, used by browsers for CORS preflight requests.

In more detail

OPTIONS is safe. Browsers send it automatically before a cross-origin request that is not simple, naming the method and headers they intend to use; the server answers with the Access-Control headers that grant or withhold permission.

Example

In the browser: An OPTIONS request has no side effects; servers answer it with headers such as Allow or Access-Control-Allow-Methods.

Related terms

Taught in

References