virtualservice 跨域配置

spec:
  gateways:
  - abc
  hosts:
  - abc.com
  http:
  - corsPolicy:
      allowCredentials: false
      allowHeaders:
      - DNT
      - X-CustomHeader
      - Keep-Alive
      - User-Agent
      - X-Requested-With
      - If-Modified-Since
      - Cache-Control
      - Content-Type
      - Authorization
      allowMethods:
      - POST
      - GET
      - OPTIONS
      allowOrigins:
      - exact: '*'
      maxAge: 24h
Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐