A simple CORS filter that can used to allow the swagger ui or other API browsers from remote origins to access the
Rest services exposes by this Camel swagger component.
You can configure CORS headers in the init parameters to the Servlet Filter using the names:
- Access-Control-Allow-Origin
- Access-Control-Allow-Methods
- Access-Control-Allow-Headers
- Access-Control-Max-Age
If a parameter is not configured then the default value is used.
The default values are defined as:
RestConfiguration.CORS_ACCESS_CONTROL_ALLOW_ORIGIN
RestConfiguration.CORS_ACCESS_CONTROL_ALLOW_METHODS
RestConfiguration.CORS_ACCESS_CONTROL_ALLOW_HEADERS
RestConfiguration.CORS_ACCESS_CONTROL_MAX_AGE