API Testing · Junior · Question 48 of 75

What is an OPTIONS request with Access-Control-Request-Method in the browser?

Show the answer

Correct answer: A CORS preflight asking if the real request is allowed

Explanation

For non-simple requests, the browser asks first. If the preflight fails, the real request is never sent.

Further reading

Problem with a question

API Testing · Junior · question 48

Test yourself

Take the API Testing · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz