Understanding the Purpose of an HTTP Request for Options

In order to prevent the OPTIONS request, certain prerequisites must be met for an ajax request. Firstly, the request should not include any custom HTTP headers, such as ‘application/xml’ or ‘application/json’. Secondly, the request method must be either GET, HEAD or POST. It is important for your server to not disregard these requests, but rather handle them, especially when performing cross-origin requests.
Access-Control-Request-Method, 6 days ago ยท The Access-Control-Request-Method request header is used by browsers when issuing a preflight request, to let the server know which HTTP

Frequently Asked Questions