confluentinc / kafka-rest

Confluent REST Proxy for Kafka
https://docs.confluent.io/current/kafka-rest/docs/index.html
Other
47 stars 647 forks source link

Browser http request is redirected to https #548

Open tatianafrank opened 5 years ago

tatianafrank commented 5 years ago

I have a webpage on localhost trying to make an http request to my kafka-rest-proxy instance running on another server that doesnt have https but the request URL gets changed to https and fails with a network error. When I type the url directly into the browser, there's no issue-- the URL is not redirected to https. Is there some header or setting that needs to be added in the properties file?

wheresalice commented 5 years ago

This doesn't sound something like kafka-rest-proxy would be doing. It knows about what IP addresses and what protocol to use though the listeners configuration, and it knows about what hostname to use when generating absolute URLs through the host.name configuration.

If listeners doesn't include an https URL then it won't be doing any redirects.