Open
Description
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/
?
devd --port=443 \
--cert=_certs/devd.io/bundle.pem \
/=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?).
devd/reverseproxy/reverseproxy.go
Line 80 in 93164c9
Metadata
Metadata
Assignees
Labels
No labels