`Host` headers are not forwarded
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 431
- Forks
- 179
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 71
Description
Describe the bug
When using the forwardHeaders, the Host header is not forwarded.
To Reproduce
Steps to reproduce the behavior:
- Add
Hostto the list of headers to be forwarded from the UI - Check the forwarded headers to see that it is missing
Expected behavior
Should forward the Host header
Desktop (please complete the following information):
- OS: MacOS
- Browser FireFox
- Version 145.0.2 (aarch64)
Additional context
This is likely because golang puts this into the request.Host field. From the doc
For incoming requests, the Host header is promoted to the Request.Host field and removed from the Header map.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the forwardHeaders handling and inspect Go's net/http Request.Host behavior, since incoming Host values are removed from the Header map. Reproduce the UI configuration described in the issue, then verify that the forwarded request includes Host and add or run the relevant forwarding coverage if present.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100