Skip to content

update getRoot function to handle port properly#4

Open
JoshMcCullough wants to merge 1 commit intodevelopfrom
jsm/update-express-port-handling
Open

update getRoot function to handle port properly#4
JoshMcCullough wants to merge 1 commit intodevelopfrom
jsm/update-express-port-handling

Conversation

@JoshMcCullough
Copy link
Copy Markdown

@JoshMcCullough JoshMcCullough commented Jan 30, 2026

The local port is being included in some URLs returned from Mage (e.g. https://mage.somehost.net:8830/...), this appears to be happening because req.get('host') includes the port. I've updated the express config to enable the trust proxy option as well as get the "hostname" directly.

This fixed the URL which is generated server side for observation attachments and export downloads

Docs:

@JoshMcCullough JoshMcCullough force-pushed the jsm/update-express-port-handling branch from bec30b2 to 0442381 Compare February 4, 2026 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant