Home

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

Name Type One-of group Required Constraints
allow_credentials google.protobuf.BoolValue  
allow_headers string  
allow_methods string  
allow_origin_string_match [] envoy.type.matcher.v3.StringMatcher  
allow_private_network_access google.protobuf.BoolValue  
expose_headers string  
filter_enabled envoy.config.core.v3.RuntimeFractionalPercent enabled_specifier  
max_age string  
shadow_enabled envoy.config.core.v3.RuntimeFractionalPercent