envoy.config.route.v3.CorsPolicy
Example
Disclaimer: The example is meant to show what methods are available on the object and does not necessarily constitute working
code.
local types = import 'types.libsonnet';
types.envoy.config.route.v3.CorsPolicy
.withAllowCredentials(false)
.withAllowHeaders('string')
.withAllowMethods('string')
.withAllowOriginStringMatch([ types.envoy.type.matcher.v3.StringMatcher ])
.withAllowPrivateNetworkAccess(false)
.withExposeHeaders('string')
.withFilterEnabled(types.envoy.config.core.v3.RuntimeFractionalPercent)
.withMaxAge('string')
.withShadowEnabled(types.envoy.config.core.v3.RuntimeFractionalPercent)
._validate()
Fields