A preflight request is an HTTP OPTIONS method request sent before the request itself to check if it is safe to send it.
Only when the server sends a positive response is the actual HTTP request sent.
The preflight request contains metadata with information such as:
As described in the page about resource creation:
As a standard, responses to preflight requests will contain the following headers:
key: value
If the preflight request contains the Access-Control-Request-Headers header, the response will include its content in the Access-Control-Allow-Headers key-value header.
We use cookies to enhance your experience on our site. By continuing to browse, you agree to our use of cookies.Learn more