System Design · Middle · Question 53 of 75

When does the browser send a CORS preflight request, and how can you avoid it?

Explanation

The extra OPTIONS round trip adds latency. Access-Control-Max-Age lets browsers cache the preflight result.

Further reading

Problem with a question

System Design · Middle · question 53

Test yourself

Take the System Design · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz