Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ProxyHeaderMiddleware doesn't handle X-Forwarded-Host #585

Open
renzodf opened this issue Jul 5, 2023 · 0 comments
Open

ProxyHeaderMiddleware doesn't handle X-Forwarded-Host #585

renzodf opened this issue Jul 5, 2023 · 0 comments

Comments

@renzodf
Copy link
Contributor

renzodf commented Jul 5, 2023

Hello,

Currently the ProxyHeaderMiddleware handles Forwarded or a combination of X-Forwarded-Proto and X-Forwarded-Port but miss the X-Forwarded-Host

When stac-fastapi is deployed behind a proxy that uses the X-Forwarded-* it causes an issue with the generation of links inside STAC catalog, collections, and items where only the port and protocol are replaced but the host remains the local domain name.

Cheers,
Renzo

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

No branches or pull requests

1 participant