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

Service Worker
A JavaScript file that runs in the background, enabling offline support, push notifications, and background sync for web apps.
Lazy Loading
A technique that delays loading non-critical resources until they are needed, improving initial page load performance.
Web Font Optimization
Techniques for loading custom fonts efficiently to minimize their impact on page load performance and visual stability.
Canonical URL
An HTML element that tells search engines which URL is the preferred version of a page when duplicate or similar content exists at multiple URLs.
CSS Grid
A two-dimensional CSS layout system for creating complex grid-based designs with rows and columns.
Brotli Compression
A modern compression algorithm developed by Google that achieves better compression ratios than Gzip for web content delivery.
View All Web Development Terms โ†’