🎁 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

Idempotency
A property where performing an operation multiple times produces the same result as performing it once.
SSR (Server-Side Rendering)
A technique where web pages are rendered on the server and sent as complete HTML to the browser, improving SEO and initial load time.
SPA (Single Page Application)
A web application that loads a single HTML page and dynamically updates content without full page reloads.
Cookie
A small piece of data stored in the browser by a website to remember user preferences, login state, or tracking information.
Web Accessibility (a11y)
The practice of designing websites that can be used by people with disabilities, following WCAG guidelines.
CSS Flexbox
A CSS layout model that provides efficient arrangement of items within a container, handling alignment, distribution, and spacing.
View All Web Development Terms →