temporalio / temporalio/ui

`Host` headers are not forwarded

Open
#3,066 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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:

  1. Add Host to the list of headers to be forwarded from the UI
  2. 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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.