Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for allowMethods (0.22 sec)

  1. pkg/config/validation/validation_test.go

    		valid bool
    	}{
    		{name: "valid", in: &networking.CorsPolicy{
    			AllowMethods:  []string{"GET", "POST"},
    			AllowHeaders:  []string{"header1", "header2"},
    			ExposeHeaders: []string{"header3"},
    			MaxAge:        &durationpb.Duration{Seconds: 2},
    		}, valid: true},
    		{name: "bad method", in: &networking.CorsPolicy{
    			AllowMethods:  []string{"GET", "PUTT"},
    			AllowHeaders:  []string{"header1", "header2"},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 03:11:45 UTC 2024
    - 196K bytes
    - Viewed (0)
  2. pilot/pkg/networking/core/route/route.go

    			Numerator:   100,
    			Denominator: xdstype.FractionalPercent_HUNDRED,
    		},
    	}
    
    	out.AllowCredentials = in.AllowCredentials
    	out.AllowHeaders = strings.Join(in.AllowHeaders, ",")
    	out.AllowMethods = strings.Join(in.AllowMethods, ",")
    	out.ExposeHeaders = strings.Join(in.ExposeHeaders, ",")
    	if in.MaxAge != nil {
    		out.MaxAge = strconv.FormatInt(in.MaxAge.GetSeconds(), 10)
    	}
    	return &out
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 14:12:39 UTC 2024
    - 56.1K bytes
    - Viewed (0)
  3. manifests/charts/istiod-remote/templates/crd-all.gen.yaml

                                requesting the resource.
                              items:
                                type: string
                              type: array
                            allowMethods:
                              description: List of HTTP methods allowed to access the
                                resource.
                              items:
                                type: string
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 21:31:42 UTC 2024
    - 671.7K bytes
    - Viewed (0)
  4. tests/integration/pilot/common/routing.go

    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:
        - destination:
            host: {{ .dstSvc }}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 21:52:51 UTC 2024
    - 135.9K bytes
    - Viewed (0)
  5. pkg/config/validation/validation.go

    	if policy == nil {
    		return
    	}
    
    	for _, origin := range policy.AllowOrigins {
    		errs = appendErrors(errs, validateAllowOrigins(origin))
    	}
    
    	for _, method := range policy.AllowMethods {
    		errs = appendErrors(errs, validateHTTPMethod(method))
    	}
    
    	for _, name := range policy.AllowHeaders {
    		errs = appendErrors(errs, ValidateHTTPHeaderName(name))
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 04:03:33 UTC 2024
    - 107.2K bytes
    - Viewed (0)
  6. manifests/charts/base/crds/crd-all.gen.yaml

                                requesting the resource.
                              items:
                                type: string
                              type: array
                            allowMethods:
                              description: List of HTTP methods allowed to access the
                                resource.
                              items:
                                type: string
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 21:31:42 UTC 2024
    - 671.6K bytes
    - Viewed (0)
  7. operator/cmd/mesh/testdata/manifest-generate/output/all_on.golden-show-in-gh-pull-request.yaml

                                requesting the resource.
                              items:
                                type: string
                              type: array
                            allowMethods:
                              description: List of HTTP methods allowed to access the
                                resource.
                              items:
                                type: string
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jan 10 05:10:03 UTC 2024
    - 506.8K bytes
    - Viewed (0)
  8. docs/em/docs/tutorial/cors.md

    * `allow_origin_regex` - 🎻 🎻 🏏 🛡 🇨🇳 👈 🔜 ✔ ⚒ ✖️-🇨🇳 📨. ✅ `'https://.*\.example\.org'`.
    * `allow_methods` - 📇 🇺🇸🔍 👩‍🔬 👈 🔜 ✔ ✖️-🇨🇳 📨. 🔢 `['GET']`. 👆 💪 ⚙️ `['*']` ✔ 🌐 🐩 👩‍🔬.
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Apr 01 09:26:04 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  9. docs/ru/docs/tutorial/cors.md

    * `allow_origin_regex` - Регулярное выражение для определения  источников, на которые разрешено выполнять кросс-доменные запросы. Например, `'https://.*\.example\.org'`.
    * `allow_methods` - Список HTTP-методов, которые разрешены для кросс-доменных запросов. По умолчанию равно `['GET']`. Можно использовать `['*']`, чтобы разрешить все стандартные методы.
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Jun 22 14:29:56 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  10. docs/en/docs/tutorial/cors.md

    * `allow_origin_regex` - A regex string to match against origins that should be permitted to make cross-origin requests. e.g. `'https://.*\.example\.org'`.
    * `allow_methods` - A list of HTTP methods that should be allowed for cross-origin requests. Defaults to `['GET']`. You can use `['*']` to allow all standard methods.
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sun Nov 13 20:28:37 UTC 2022
    - 5.1K bytes
    - Viewed (0)
Back to top