🎁 New User? Get 20% off your first purchase with code NEWUSER20 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 Performance Optimization
Techniques to make websites load faster and respond more quickly, improving user experience and search engine rankings.
HTTP Status Codes
Standardized three-digit codes returned by web servers to indicate the result of a client's HTTP request.
Static Site Generator (SSG)
A tool that generates a complete static HTML website from templates and content at build time, requiring no server-side processing.
Meta Tags
HTML elements in the page head that provide metadata about the document for browsers, search engines, and social media platforms.
Content Negotiation
An HTTP mechanism where client and server agree on the best representation of a resource based on format, language, or encoding preferences.
Responsive Design
A web design approach that makes web pages render well on all screen sizes using flexible layouts and media queries.
View All Web Development Terms →