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
micronaut:
server:
cors:
enabled: true
configurations:
web:
allowedHeaders:
- Content-Type
- Authorization