Skip to main content

Preflight Request

Learn Preflight Request (CORS, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

Fresher Notes Preflight request is an automatic OPTIONS request the browser sends before a non-simple cross-origin request, to ask the server for permission. Headers sent : Origin , Access-Control-Request-Method and Access-Control-Request-Headers . Server reply : Access-Control-Allow-Origin , Access-Control-Allow-Methods , Access-Control-Allow-Headers and Access-Control-Max-Age .

More lessons in CORS