liveBook · Manning

Preflight request

A preflight request is a browser-generated HTTP OPTIONS request under CORS that checks whether a subsequent cross-origin request is permitted.

How 3 Manning books explain it

Building Web APIs with ASP.NET Core

A preflight request is an HTTP OPTIONS request that a browser sends to determine whether a subsequent cross-origin request is permitted.

How it is used
Uses preflight requests to check server CORS settings before proceeding with a non-simple cross-origin request.
How deep it goes
Explains when the browser sends an OPTIONS request and contrasts the sequence with a simple request.
Examples
Illustrates a default CORS policy that allows any origin, header, and method.
What you can do after
Evaluate and understand why a browser sends a preflight request and how it differs from a simple request.

Read how Building Web APIs with ASP.NET Core explains preflight request →

Spring Security in Action, Second Edition

A preflight request is a browser-generated HTTP request that tests whether a cross-origin request is permitted before the browser sends the original request.

How it is used
Explains why browsers make cross-origin OPTIONS requests and how those requests determine whether the original request proceeds.
How deep it goes
Describes browser responsibility, failure behavior, CORS headers, and MockMvc validation, without implementing browser-side preflight logic.
Examples
Uses a cross-origin POST example, browser console output, a request-flow figure, and a MockMvc OPTIONS test.
What you can do after
Diagnose/debug CORS behavior by inspecting OPTIONS requests and validating allowed-origin and allowed-method response headers.

Read how Spring Security in Action, Second Edition explains preflight request →

Build Financial Software with Generative AI (From Scratch)

A preflight request is a browser-generated cross-origin HTTP request that asks whether a subsequent request is permitted before sending it.

How it is used
Checks cross-origin API permission before the browser sends a request, helping diagnose and configure CORS failures.
How deep it goes
Explains the browser check and required response policy, then stops short of detailing the HTTP exchange itself.
Examples
Uses localhost dashboard-to-API calls, a missing Access-Control-Allow-Origin error, and FastAPI CORSMiddleware configuration.
What you can do after
Configure FastAPI CORSMiddleware with explicit origins, methods, headers, and credential behavior to resolve cross-origin API access.

Read how Build Financial Software with Generative AI (From Scratch) explains preflight request →

Also covered in

What to know first

Related concepts

Questions about preflight request

What is preflight request?

A preflight request is a browser-generated HTTP OPTIONS request under CORS that checks whether a subsequent cross-origin request is permitted.

Which Manning books explain preflight request?

Building Web APIs with ASP.NET Core, Spring Security in Action, Second Edition and Build Financial Software with Generative AI (From Scratch).

What should I know before learning preflight request?

Manning books that teach preflight request usually introduce OPTIONS and HTTP method first.

What is preflight request a kind of?

Preflight request is a kind of HTTP OPTIONS. HTTP OPTIONS is a request method for asking a server or resource about its available communication options.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.