simple request
A cross-origin request that browsers send without a preflight because it uses only basic methods and headers, such as a plain GET.
In more detail
Anything else, such as a POST with a JSON body or a custom header like Idempotency-Key, needs a preflight first. The rules are defined by the Fetch standard.
Example
In the browser: Anything else is non-simple and gets a preflight first. Simple requests still need CORS headers on the response before scripts can read it.Related terms
- preflight request — An automatic OPTIONS request a browser sends before a cross-origin request that is not simple, to ask the server for permission first.
- CORS — The browser rule set that decides whether web page code from one origin may read a response from a different origin.
Taught in
- Cookies And CORS — Modern API Architecture: REST, GraphQL & gRPC
- Same-Origin Policy, CORS Preflight, Credentials And Headers — Frontend Architecture & Web Platform