This message was deleted.
# general
m
This message was deleted.
h
From what I see, the code should properly be proxying to the right host (https://github.com/ory/cli/blob/master/cmd/cloudx/proxy/proxy.go#L202), but eithere there's an issue somewhere else or I'm completely mistaken
r
I’m new to Ory so take my answer with a grain (heap) of salt. You might want to look into
ory tunnel
instead of
ory proxy
for your use case. Requests to your backend will not go through the proxy in that case and no Host header rewriting should be necessary.
🚚 1
🧂 1
h
Isn't the tunnel explicitly made for communication with ory? (That's what I understood from the docs, I might be totally off) I'm looking to communicate not with ory, but with one of my own services, in development. Use case being similar to <https://www.ory.sh/docs/assets/images/proxy-25579a753e98b6b467234dd92ce7c5bf.svg> (Except I have a tunnel alongside because it's easier to configure that than to fight callback URLs being messy)
Since the blame where the header is at is from 12 days ago, I have checked that yes, I have the latest version (also social login works)
Copy code
> ory version

Version:    v0.1.41
Git Hash:   06b736ee97ceb66143c2a608e43d88693c388be0
Build Time: 2022-09-15T20:27:50Z
Oh that's not what I think it does, so there's no Host rewriting at all! (I don't get what this is supposed to do, but it doesn't do any rewriting)
Sorry for not making an issue first-hand, I just needed this fixed ASAP for my use case. I don't think this is a security issue in any way, but I'm not one to ask about security. Opened a PR, https://github.com/ory/cli/pull/224
r
Hey, thanks for the PR! We’ll take a look 👍
🙌 1