Description

Configuration of CORS feature.

Usages

Configuration options

KeyKindTypeDefault ValueDescription
add-defaultsVALUEBooleantrueWhether to add a default path configuration, that matches all paths, GET, HEAD, POST methods, and allows all origins, methods, and headers
enabledVALUEBoolean This feature can be disabled
pathsLISTi.h.w.c.CorsPathConfig Per path configuration
paths-discover-servicesVALUEBooleantrueWhether to enable automatic service discovery for paths
socketsLISTString List of sockets to register this feature on
weightVALUEDouble850.0Weight of the CORS feature

See the manifest for all available types.