Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for allowOrigins (0.24 sec)

  1. 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}"
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Aug 07 15:18:05 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  2. tests/testdata/config/rule-default-route-cors-policy.yaml

    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)
  3. tests/fuzz/testdata/FuzzConfigValidation2/fuzz_config_validation2.dict

    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jul 07 17:07:53 UTC 2021
    - 2K bytes
    - Viewed (0)
  4. pkg/config/analysis/analyzers/util/find_errorline_utils_test.go

    	"{.spec.http[0].match[0].test.regex}":                           1,
    	"{.spec.http[0].match[0].test.test.regex}":                      1,
    	"{.spec.http[0].corsPolicy.allowOrigins[0].regex}":              1,
    	"{.spec.workloadSelector.labels.test}":                          1,
    	"{.spec.ports[0].port}":                                         1,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 02 17:36:47 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  5. pilot/pkg/networking/core/route/route_internal_test.go

    	node := &model.Proxy{
    		IstioVersion: &model.IstioVersion{
    			Major: 1,
    			Minor: 23,
    			Patch: 0,
    		},
    	}
    	corsPolicy := &networking.CorsPolicy{
    		AllowOrigins: []*networking.StringMatch{
    			{MatchType: &networking.StringMatch_Exact{Exact: "exact"}},
    			{MatchType: &networking.StringMatch_Prefix{Prefix: "prefix"}},
    			{MatchType: &networking.StringMatch_Regex{Regex: "regex"}},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat May 11 02:47:57 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  6. pilot/pkg/networking/core/route/route.go

    		out.ForwardNotMatchingPreflights = forwardNotMatchingPreflights(in)
    	}
    
    	// nolint: staticcheck
    	if in.AllowOrigins != nil {
    		out.AllowOriginStringMatch = util.ConvertToEnvoyMatches(in.AllowOrigins)
    	} else if in.AllowOrigin != nil {
    		out.AllowOriginStringMatch = util.StringToExactMatch(in.AllowOrigin)
    	}
    
    	out.FilterEnabled = &core.RuntimeFractionalPercent{
    		DefaultValue: &xdstype.FractionalPercent{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 14:12:39 UTC 2024
    - 56.1K bytes
    - Viewed (0)
  7. pkg/config/validation/validation_test.go

    			AllowHeaders:  []string{"header1", "header2"},
    			ExposeHeaders: []string{"header3"},
    			MaxAge:        &durationpb.Duration{Seconds: 2, Nanos: 42},
    		}, valid: false},
    		{name: "empty matchType AllowOrigins", in: &networking.CorsPolicy{
    			AllowOrigins: []*networking.StringMatch{
    				{MatchType: &networking.StringMatch_Exact{Exact: ""}},
    				{MatchType: &networking.StringMatch_Prefix{Prefix: ""}},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 03:11:45 UTC 2024
    - 196K bytes
    - Viewed (0)
  8. pkg/config/validation/validation.go

    	}
    	return
    }
    
    func validateCORSPolicy(policy *networking.CorsPolicy) (errs error) {
    	if policy == nil {
    		return
    	}
    
    	for _, origin := range policy.AllowOrigins {
    		errs = appendErrors(errs, validateAllowOrigins(origin))
    	}
    
    	for _, method := range policy.AllowMethods {
    		errs = appendErrors(errs, validateHTTPMethod(method))
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 04:03:33 UTC 2024
    - 107.2K bytes
    - Viewed (0)
  9. manifests/charts/istiod-remote/templates/crd-all.gen.yaml

                              items:
                                type: string
                              type: array
                            allowOrigin:
                              items:
                                type: string
                              type: array
                            allowOrigins:
                              description: String patterns that match allowed origins.
                              items:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 21:31:42 UTC 2024
    - 671.7K bytes
    - Viewed (0)
  10. manifests/charts/base/crds/crd-all.gen.yaml

                              items:
                                type: string
                              type: array
                            allowOrigin:
                              items:
                                type: string
                              type: array
                            allowOrigins:
                              description: String patterns that match allowed origins.
                              items:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 21:31:42 UTC 2024
    - 671.6K bytes
    - Viewed (0)
Back to top