DevKits

CORS · Response header

Access-Control-Max-Age

How long the browser may cache the preflight response.

What is Access-Control-Max-Age?

Reduces the frequency of expensive OPTIONS preflights by allowing browsers to cache them for the given number of seconds.

Typical usage

Set on preflight responses.

Examples

Access-Control-Max-Age: 86400

Related headers