Allowed Methods

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

To specify a list of allowed methods, set the allowedMethods 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. allowedMethods:
  8. - POST
  9. - PUT