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
I'm invoking devd with the command below and accessing my application over https://devd.io/. I noticed in my application that X-Forwarded-Proto = http - shouldn't it be https since I am forwarding /=https://127.0.0.1:3000/ ?
Changing the following line in reverseproxy.go to req.Header.Set("X-Forwarded-Proto", target.Scheme) results in X-Forwarded-Proto being set to https (it works for my use-case but I'm not sure if this is the right fix?).
When using "--cert" X-Forwarded-Proto gets set to "http" (should be "https")
Steps to reproduce:
start web server to show X-Forwarded-Proto header
start devd with --cert="SomeCustomCert"
make request to devd
# start web server in one terminal (netcat will do in a pinch)
nc -l 9000
# start devd in another terminal # just use ~/.devd.cert which should be there if you have ever started devd with --tls
devd --cert=${HOME}/.devd.cert http://localhost:9000
# Make request
curl -k https://devd.io:8000
Then inspect the output from netcat. ( ctrl+C to quit netcat)
Note: the "--tls" flag sets X-Forwarded-Proto correctly.
I'm invoking
devd
with the command below and accessing my application overhttps://devd.io/
. I noticed in my application thatX-Forwarded-Proto = http
- shouldn't it behttps
since I am forwarding/=https://127.0.0.1:3000/
?Changing the following line in
reverseproxy.go
toreq.Header.Set("X-Forwarded-Proto", target.Scheme)
results inX-Forwarded-Proto
being set tohttps
(it works for my use-case but I'm not sure if this is the right fix?).devd/reverseproxy/reverseproxy.go
Line 80 in 93164c9
The text was updated successfully, but these errors were encountered: