Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for allowMethods (0.25 sec)

  1. 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)
  2. tests/testdata/config/rule-default-route-cors-policy.yaml

    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:
              - x-custom-header
            maxAge: 300s
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 01 00:53:22 UTC 2020
    - 827 bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. docs_src/cors/tutorial001.py

        "https://localhost.tiangolo.com",
        "http://localhost",
        "http://localhost:8080",
    ]
    
    app.add_middleware(
        CORSMiddleware,
        allow_origins=origins,
        allow_credentials=True,
        allow_methods=["*"],
        allow_headers=["*"],
    )
    
    
    @app.get("/")
    async def main():
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Mar 26 19:09:53 UTC 2020
    - 459 bytes
    - Viewed (0)
  10. 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)
Back to top