Skip to main content

OPTIONS Request

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

Fresher Notes OPTIONS is an HTTP method that asks a server which methods and headers a URL supports; it changes nothing and has no body. Preflight : before a cross-origin call that is not simple (for example JSON POST or PUT ), the browser sends an automatic OPTIONS request first. Answer : the server replies with Access-Control-Allow-Origin , Access-Control-Allow-Methods and Access-Control-Allow-Headers , and the browser then sends the real request.

More lessons in CORS