๐ŸŽ 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

Progressive Web App (PWA)
A web application that uses modern web capabilities to deliver app-like experiences with offline support and push notifications.
TypeScript
A typed superset of JavaScript that adds static type checking, interfaces, and advanced IDE support to JavaScript development.
Progressive Enhancement
A web design strategy that starts with basic functionality for all browsers and progressively adds advanced features for capable ones.
GraphQL
A query language for APIs that lets clients request exactly the data they need, reducing over-fetching and under-fetching.
Meta Tags
HTML elements in the page head that provide metadata about the document for browsers, search engines, and social media platforms.
WebSocket
A communication protocol that enables full-duplex, real-time data exchange between a browser and server over a single connection.
View All Web Development Terms โ†’