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
Is there an alternative to smee that support this then? if smee won't fix this? I have the same issue. and I think if you have a VM running http server with virtual hosts the proxy won't work as expected... smee should provide this or a way to override the HOST header sent to the target host
I have tried this on my computer and works! Why not put the change and make a PR to see if it is accepted.... it is annoying having to have a customized version of smee!
Currently client pases original "Host" header coming from request. This way kubernetes ingress can't dispatch call to respective service.
Host header should come from target hostname and original Host could be placed in x-forwarded-host header as proxy usually do.
Suggested solution:
L50:
Object.keys(data).forEach(key => {
req.set(key, data[key])
if(key.toUpperCase() === 'HOST'){
req.set(key, target.host);
req.set('x-forwarded-host', data[key]);
}
})
The text was updated successfully, but these errors were encountered: