Exposed Headers
To configure the list of headers that are sent in the response to a CORS request through the Access-Control-Expose-Headers
header, include a list of strings for the exposedHeaders
key in your configuration. By default no headers are exposed.
Example CORS Configuration
micronaut:
server:
cors:
enabled: true
configurations:
web:
exposedHeaders:
- Content-Type
- Authorization