Istio
Hard
Traffic Management
What is the purpose of Istio's 'corsPolicy' field in VirtualService?
Select your answer:
Show answer and explanation
Answer: To implement Cross-Origin Resource Sharing policies
Explanation
The 'corsPolicy' field in Istio's VirtualService is used to implement Cross-Origin Resource Sharing (CORS) policies. It allows you to control which origins, methods, and headers are allowed when browsers make cross-origin requests to your services.
More hard Istio questions
- What is the purpose of Istio's 'trafficPolicy.connectionPool' field in DestinationRule?
- In Istio ambient mode, which component handles mTLS and L4 policy for the pods on each node?
- A namespace runs in Istio ambient mode. You need HTTP header-based routing and L7 authorization for one of its services. What do you add?
- A workload has AuthorizationPolicies with CUSTOM, DENY, and ALLOW actions. In what order does Istio check them?
- The mesh-wide PeerAuthentication in istio-system sets STRICT. The namespace has one that sets PERMISSIVE. A workload-specific policy sets portLevelMtls to DISABLE for port 8080. Which mode applies to port 8080 of that workload?
- An application in an Istio sidecar pod fails at startup because its first outbound calls happen before the Envoy sidecar is ready. Which setting fixes this?