- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 19 for corsPolicy (0.24 sec)
-
pilot/pkg/networking/core/route/route_internal_test.go
} if got := TranslateCORSPolicy(node, corsPolicy); !reflect.DeepEqual(got, expectedCorsPolicy) { t.Errorf("TranslateCORSPolicy() = \n%v, want \n%v", got, expectedCorsPolicy) } } func TestTranslateCORSPolicy(t *testing.T) { node := &model.Proxy{ IstioVersion: &model.IstioVersion{ Major: 1, Minor: 21, Patch: 0, }, } corsPolicy := &networking.CorsPolicy{ AllowOrigins: []*networking.StringMatch{
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat May 11 02:47:57 UTC 2024 - 18.2K bytes - Viewed (0) -
tests/testdata/config/rule-default-route-cors-policy.yaml
kind: VirtualService metadata: name: cors namespace: testns spec: hosts: - cors.test.istio.io http: - route: - destination: host: cors.test.istio.io corsPolicy: allowOrigins: - exact: http://foo.example allowMethods: - POST - GET - OPTIONS allowHeaders: - content-type exposeHeaders:
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jun 01 00:53:22 UTC 2020 - 827 bytes - Viewed (0) -
tests/fuzz/testdata/FuzzConfigValidation2/fuzz_config_validation2.dict
"ingress" "outgress" "outboundTrafficPolicy" "captureMode" "defaultEndpoint" "gateways" "delegate" "redirect" "rewrite" "timeout" "retries" "fault" "mirror" "mirrorPercentage" "corsPolicy" "headers" "mirrorPercent" "namespace" "request" "response" "route" "uri" "method" "authority" "sourceLabels" "queryParams" "ignoreUriCase" "withoutHeaders"
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jul 07 17:07:53 UTC 2021 - 2K bytes - Viewed (0) -
pkg/config/analysis/analyzers/util/find_errorline_utils_test.go
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Feb 02 17:36:47 UTC 2024 - 3.5K bytes - Viewed (0) -
pkg/config/analysis/analyzers/util/find_errorline_utils.go
HeaderAndQueryParamsRegexMatch = "{.spec.http[%d].match[%d].%s.%s.regex}" // Path for regex match of allowOrigins. // Required parameters: http index, allowOrigins index. AllowOriginsRegexMatch = "{.spec.http[%d].corsPolicy.allowOrigins[%d].regex}" // Path for workload selector. // Required parameters: selector label. WorkloadSelector = "{.spec.workloadSelector.labels.%s}" // Path for port from ports collections.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Aug 07 15:18:05 UTC 2023 - 4.7K bytes - Viewed (0) -
pilot/pkg/networking/core/listener_waypoint.go
} if in.Fault != nil || in.CorsPolicy != nil { out.TypedPerFilterConfig = make(map[string]*any.Any) } if in.Fault != nil { out.TypedPerFilterConfig[wellknown.Fault] = protoconv.MessageToAny(istio_route.TranslateFault(in.Fault)) } if in.CorsPolicy != nil { out.TypedPerFilterConfig[wellknown.CORS] = protoconv.MessageToAny(istio_route.TranslateCORSPolicy(lb.node, in.CorsPolicy)) } return out }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jun 14 04:34:37 UTC 2024 - 27.6K bytes - Viewed (0) -
pilot/pkg/model/virtualservice.go
delegate.MirrorPercent = root.MirrorPercent } if delegate.MirrorPercentage == nil { delegate.MirrorPercentage = root.MirrorPercentage } if delegate.CorsPolicy == nil { delegate.CorsPolicy = root.CorsPolicy } if delegate.Mirrors == nil { delegate.Mirrors = root.Mirrors } if delegate.Headers == nil { delegate.Headers = root.Headers } return delegate }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Mar 30 11:17:03 UTC 2024 - 17.4K bytes - Viewed (0) -
pilot/pkg/networking/core/route/route.go
} if in.Fault != nil || in.CorsPolicy != nil { out.TypedPerFilterConfig = make(map[string]*anypb.Any) } if in.Fault != nil { out.TypedPerFilterConfig[wellknown.Fault] = protoconv.MessageToAny(TranslateFault(in.Fault)) } if in.CorsPolicy != nil { out.TypedPerFilterConfig[wellknown.CORS] = protoconv.MessageToAny(TranslateCORSPolicy(node, in.CorsPolicy)) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 14 14:12:39 UTC 2024 - 56.1K bytes - Viewed (0) -
pkg/config/validation/virtualservice.go
} for _, name := range http.Headers.GetResponse().GetRemove() { errs = AppendValidation(errs, ValidateHTTPHeaderOperationName(name)) } errs = AppendValidation(errs, validateCORSPolicy(http.CorsPolicy)) errs = AppendValidation(errs, validateHTTPFaultInjection(http.Fault)) // nolint: staticcheck if http.MirrorPercent != nil { if value := http.MirrorPercent.GetValue(); value > 100 {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jun 12 04:03:27 UTC 2024 - 9.3K bytes - Viewed (0) -
pilot/pkg/model/virtualservice_test.go
*r = wrapperspb.UInt32Value{} }, func(r *networking.Percent, c fuzz.Continue) { *r = networking.Percent{} }, func(r *networking.CorsPolicy, c fuzz.Continue) { *r = networking.CorsPolicy{} }, func(r *networking.Headers, c fuzz.Continue) { *r = networking.Headers{} }, func(r *networking.HTTPMirrorPolicy, c fuzz.Continue) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sun Apr 21 17:42:54 UTC 2024 - 60.6K bytes - Viewed (0)