max-age

The max-age entry specifies the amount of time that clients may cache the results of a pre-flight response.

max-age = <seconds>

Description

The number of seconds a client should cache the results of a pre-flight check. This adds the following header to pre-flight responses:
Access-Control-Max-Age: <seconds>

This entry should be a positive integer or the values -1 or 0 which are special cases explained below.

If this entry is not present, no Access-Control-Max-Age header is added.

This entry only affects only pre-flight requests.

Options

Usage: Optional

Default value: None.

Example:

max-age = 3600

Parent topic: [cors-policy:policy-name] stanza