Skip to content

Conversation

@pantierra
Copy link
Contributor

@pantierra pantierra commented Dec 11, 2025

The HTTP X-Forwarded-Host (XFH) request header is an official but de-facto standard and not clearly defining when it comes to the way ports are indicated. It seems both of these approaches are common:

  • X-Forwarded-Host: example.com:80
  • X-Forwarded-Host: example.com with X-Forwarded-Port: 80

The second seems to be more common among ingress proxy solutions for kubernetes (nginx and traefik).

The first approach with X-Forwarded-Host: example.com:80 is already supported by stac-auth-proxy. This PR adds support for X-Forwarded-Port header. If stac-auth-proxy receives it, to just forward it to the upstream STAC API.

@pantierra
Copy link
Contributor Author

Closing in favour of #115

@pantierra pantierra closed this Dec 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants