Max Age

The default maximum age that preflight requests can be cached is 30 minutes. To change that behavior, specify a value in seconds.

Example CORS Configuration

  1. micronaut:
  2. server:
  3. cors:
  4. enabled: true
  5. configurations:
  6. web:
  7. maxAge: 3600 # 1 hour