- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for corsPolicy (0.25 sec)
-
pkg/config/validation/validation_test.go
name string in *networking.CorsPolicy 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"},
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 30 03:11:45 UTC 2024 - 196K bytes - Viewed (0) -
pkg/config/validation/validation.go
} if len(weights) > 1 && totalWeight == 0 { errs = appendErrors(errs, fmt.Errorf("total destination weight = 0")) } return } func validateCORSPolicy(policy *networking.CorsPolicy) (errs error) { if policy == nil { return } for _, origin := range policy.AllowOrigins { errs = appendErrors(errs, validateAllowOrigins(origin)) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jun 12 04:03:33 UTC 2024 - 107.2K bytes - Viewed (0) -
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
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 08 21:52:51 UTC 2024 - 135.9K bytes - Viewed (0) -
operator/cmd/mesh/testdata/manifest-generate/data-snapshot.tar.gz
apply these routes. items: type: string type: array hosts: description: The destination hosts to which traffic is being sent. items: type: string type: array http: description: An ordered list of route rules for HTTP traffic. items: properties: corsPolicy: description: Cross-Origin Resource Sharing policy (CORS). properties: allowCredentials: description: Indicates whether the caller is allowed to send the actual request (not the preflight) using credentials. nullable: true type: boolean allowHeaders:...
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jan 10 05:10:03 UTC 2024 - 198.1K bytes - Viewed (0)