Allowed Headers

To allow any request header for a given configuration, simply don’t include the allowedHeaders key in your configuration.

To specify a list of allowed headers, set the allowedHeaders key of the configuration to a list of strings.

Example CORS Configuration

  1. micronaut:
  2. server:
  3. cors:
  4. enabled: true
  5. configurations:
  6. web:
  7. allowedHeaders:
  8. - Content-Type
  9. - Authorization