Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for allowOrigins (0.42 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. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. tests/integration/pilot/common/routing.go

    		config: `
    apiVersion: networking.istio.io/v1alpha3
    kind: VirtualService
    metadata:
      name: default
    spec:
      hosts:
        - {{ .dstSvc }}
      http:
      - corsPolicy:
          allowOrigins:
          - exact: cors.com
          allowMethods:
          - POST
          - GET
          allowCredentials: false
          allowHeaders:
          - X-Foo-Bar
          - X-Foo-Baz
          maxAge: "24h"
        route:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 21:52:51 UTC 2024
    - 135.9K bytes
    - Viewed (0)
  10. docs/em/docs/tutorial/cors.md

    ```Python hl_lines="2  6-11  13-19"
    {!../../../docs_src/cors/tutorial001.py!}
    ```
    
    🔢 🔢 ⚙️ `CORSMiddleware` 🛠️ 🚫 🔢, 👆 🔜 💪 🎯 🛠️ 🎯 🇨🇳, 👩‍🔬, ⚖️ 🎚, ✔ 🖥 ✔ ⚙️ 👫 ✖️-🆔 🔑.
    
    📄 ❌ 🐕‍🦺:
    
    * `allow_origins` - 📇 🇨🇳 👈 🔜 ✔ ⚒ ✖️-🇨🇳 📨. 🤶 Ⓜ. `['https://example.org', 'https://www.example.org']`. 👆 💪 ⚙️ `['*']` ✔ 🙆 🇨🇳.
    * `allow_origin_regex` - 🎻 🎻 🏏 🛡 🇨🇳 👈 🔜 ✔ ⚒ ✖️-🇨🇳 📨. ✅ `'https://.*\.example\.org'`.
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Apr 01 09:26:04 UTC 2023
    - 4.1K bytes
    - Viewed (0)
Back to top