OPTIONS
The OPTIONS method is used to describe the communication options for the target resource.
It is heavily used in CORS (Cross-Origin Resource Sharing) as a “preflight” request to determine if the actual request is safe to send.
CORS Preflight Example
Section titled “CORS Preflight Example”Browsers emit an OPTIONS request automatically when a cross-origin request requires it (e.g. using custom headers).
OPTIONS /resource HTTP/1.1Host: api.example.comOrigin: https://example.comAccess-Control-Request-Method: POSTThe server responds with Access-Control-Allow-Methods and other relevant CORS headers.