Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for allowOrigins (0.17 sec)

  1. 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)
  2. 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)
  3. 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)
  4. operator/cmd/mesh/testdata/manifest-generate/data-snapshot.tar.gz

    description: List of HTTP headers that can be used when requesting the resource. items: type: string type: array allowMethods: description: List of HTTP methods allowed to access the resource. items: type: string type: array allowOrigin: items: type: string type: array allowOrigins: description: String patterns that match allowed origins. items: oneOf: - not: anyOf: - required: - exact - required: - prefix - required: - regex - required: - exact - required: - prefix - required: - regex properties: exact:...
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jan 10 05:10:03 UTC 2024
    - 198.1K bytes
    - Viewed (0)
Back to top