๐ŸŽ New User? Get 20% off your first purchase with code NEWUSER20 ยท โšก Instant download ยท ๐Ÿ”’ Secure checkout Register Now โ†’
Menu

Categories

Web Development Intermediate

What is CORS Preflight?

An automatic OPTIONS request sent by browsers before certain cross-origin requests to check if the actual request is permitted.

Browsers send preflight (OPTIONS) requests for cross-origin requests that use non-simple methods (PUT, DELETE), custom headers, or non-standard content types. The server must respond with appropriate CORS headers permitting the actual request.

Preflight responses are cached (Access-Control-Max-Age) to avoid repeated OPTIONS requests. Missing or incorrect preflight responses are a common cause of CORS errors during development.

Related Terms

Web Accessibility (a11y)
The practice of designing websites that can be used by people with disabilities, following WCAG guidelines.
HATEOAS
Hypermedia As The Engine Of Application State โ€” a REST constraint where API responses include links to related actions and resources.
HTTP/2
The second major version of HTTP that improves performance through multiplexing, header compression, and server push.
Service Worker
A JavaScript file that runs in the background, enabling offline support, push notifications, and background sync for web apps.
Caching
Storing copies of frequently accessed data in faster storage to reduce load times and server processing.
SEO (Search Engine Optimization)
The practice of optimizing websites to rank higher in search engine results, increasing organic traffic.
View All Web Development Terms โ†’