You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My target server is an HTTP 1.1 server that handles multiple hostnames.
I need to make Foxy set the Host header of the request to the hostname of the original request.
example:
My server listens on ip:127.0.0.1 port:9000 and serves two different sites on http://foo.dev:9000 and http://bar.dev:9000.
A proxy listening to ip:127.0.0.1 port:3000, and receiving a request with "foo.dev:3000" as a Host header should make an HTTP request to ip:127.0.0.1 port:9000 with as a Host header: "foo.dev:9000".
=> IMO, that would be more respectful of HTTP 1.1 than setting the target host in the Host header.
Is there a way I can fix that with the reqHeaders or middleware options ?
Thanks!
The text was updated successfully, but these errors were encountered:
Hi,
My target server is an HTTP 1.1 server that handles multiple hostnames.
I need to make Foxy set the Host header of the request to the hostname of the original request.
example:
My server listens on ip:127.0.0.1 port:9000 and serves two different sites on http://foo.dev:9000 and http://bar.dev:9000.
A proxy listening to ip:127.0.0.1 port:3000, and receiving a request with "foo.dev:3000" as a Host header should make an HTTP request to ip:127.0.0.1 port:9000 with as a Host header: "foo.dev:9000".
=> IMO, that would be more respectful of HTTP 1.1 than setting the target host in the Host header.
Is there a way I can fix that with the
reqHeaders
ormiddleware
options ?Thanks!
The text was updated successfully, but these errors were encountered: