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 don't know how to inspect the HTTP headers, but I think that may be one way to solve this problem.
I guess that the Forwarded header is not set correctly, or perhaps some other header needs to be changed.
If I understand HTTP correctly, then there are 4 HTTP headers to inspect:
User request to Proxy server
Proxy server request to Backend application
Backend application response to Proxy server
Proxy server response to User
It might be useful to directly compare the set of 4 headers in two scenarios:
The golang proxy (as shown above), where behavior is not correct. So, the headers are probably not correct.
A similar Apache or nginx proxy, where behavior is correct. These headers should be correct, and could provide a hint about what to change in the golang proxy.
Do you know why my localhost is returning 404?
Here's the code:
In contrast, this works perfectly well and the localhost app loads as it is supposed to:
The text was updated successfully, but these errors were encountered: