k8s virtualservice 跨域配置
virtualservice 跨域配置spec:gateways:- abchosts:- abc.comhttp:- corsPolicy:allowCredentials: falseallowHeaders:- DNT- X-CustomHeader- Keep-Alive- User-Agent- X-Requested-With- If-Modi
·
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
更多推荐
已为社区贡献4条内容
所有评论(0)