Use origin header when sending UI component to browser #350

Closed
opened 2026-02-15 18:16:06 -05:00 by yindo · 0 comments
Owner

Originally created by @mingfang on GitHub (Aug 31, 2025).

The current behavior of using the host header, in combination with hardcoding to use the http protocol does not work for most production cases.
https://github.com/langchain-ai/langgraphjs/blob/4e26e34077e43079b1844bb4327c7a2150d4c595/libs/langgraph-api/src/ui/load.mts#L51

Using the origin header is more reliable.

Originally created by @mingfang on GitHub (Aug 31, 2025). The current behavior of using the `host` header, in combination with hardcoding to use the `http` protocol does not work for most production cases. https://github.com/langchain-ai/langgraphjs/blob/4e26e34077e43079b1844bb4327c7a2150d4c595/libs/langgraph-api/src/ui/load.mts#L51 Using the `origin` header is more reliable.
yindo closed this issue 2026-02-15 18:16:06 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraphjs#350