我的webservice在某一个服务上暴露wsdl文件,因为该服务的请求在经过springcloud gateway转发以后变成了内网的ip,导致wsdl文件里涉及到ip的地方都变成了内网ip,外网无法解析,请问有什么好的思路吗,真的挺着急的。
6条回答 默认 最新
- 「已注销」 2023-09-26 10:28关注
使用 PreserveHostHeader 透传客户端请求头,详见:https://docs.spring.io/spring-cloud-gateway/docs/2.2.6.RELEASE/reference/html/#the-preservehostheader-gatewayfilter-factory
spring: cloud: gateway: routes: - id: preserve_host_route uri: https://example.org filters: - PreserveHostHeader评论 打赏 举报解决 1无用