CorsFeature (webserver.cors) Configuration

Type: io.helidon.webserver.cors.CorsFeature

Config key
cors
Copied

This type provides the following service implementations:

  • io.helidon.webserver.spi.ServerFeatureProvider

Configuration options

Optional configuration options
keytypedefault valuedescription
enabled

boolean

true

This feature can be disabled.

@return whether the feature is enabled
sockets

string[]

 

List of sockets to register this feature on. If empty, it would get registered on all sockets.

@return socket names to register on, defaults to empty (all available sockets)
weight

double

950.0

Weight of the CORS feature. As it is used by other features, the default is quite high: CorsFeature#WEIGHT.

@return weight of the feature