spring-framework / org.springframework.web.servlet.config.annotation / CorsRegistration / maxAge

maxAge

open fun maxAge(maxAge: Long): CorsRegistration

Configure how long in seconds the response from a pre-flight request can be cached by clients.

By default this is set to 1800 seconds (30 minutes).