AI engineering glossary · Web APIs HTTP
What is OPTIONS?
OPTIONS: An HTTP method that asks a server which methods and headers are allowed for a URL. Browsers send it automatically as a preflight request before certain cross-origin calls, so servers supporting browser clients must answer it correctly.
OPTIONS: an example
A web page at app.example.com sends OPTIONS to api.example.com to learn whether a POST with a JSON body is permitted.
Related terms
More Web APIs HTTP terms
Where you learn it
OPTIONS is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.