spring-cloud / spring-cloud-gateway

An API Gateway built on Spring Framework and Spring Boot providing routing and more.
http://cloud.spring.io
Apache License 2.0
4.55k stars 3.33k forks source link

sample example to skip hostname verification while gateway connect to upstream services. #2677

Closed niteshk9894 closed 2 months ago

niteshk9894 commented 2 years ago

Question

Hi All,

Is there any example on how skip hostname verification while gateway connect to upstream services.

spencergibb commented 8 months ago

Not that I'm aware of. You can create a HttpClientCustomizer to do anything you'd like to the reactor netty HttpClient. https://projectreactor.io/docs/netty/release/reference/index.html#http-client

spring-cloud-issues commented 2 months ago

Closing due to age of the question. If you would like us to look at this issue, please comment and we will look at re-opening the issue.