Skip to content

support x-forwarded-host as source for redirect #755

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

Merged
merged 3 commits into from
Jul 9, 2025

Conversation

erikgaas
Copy link
Contributor

@erikgaas erikgaas commented Jul 8, 2025

In a situation where we have a reverse proxy redirect like example.com upon the actual hostname of localhost:8000 OAuth causes some issues where it still will want to redirect to port 8000.

I don't think this is the expected behavior we are looking for so if the x-forwarded-host exists I let oauth consume that info instead for the redirect.

Copy link

gitnotebooks bot commented Jul 8, 2025

Found 1 changed notebook. Review the changes at https://app.gitnotebooks.com/AnswerDotAI/fasthtml/pull/755

@erikgaas erikgaas requested a review from jph00 July 8, 2025 10:39
@jph00
Copy link
Contributor

jph00 commented Jul 9, 2025

Great!

@jph00 jph00 merged commit 6a3b63c into main Jul 9, 2025
0 of 2 checks passed
@jph00 jph00 deleted the erikgaas/x_forward_redirect branch July 9, 2025 02:51
@jph00 jph00 added the enhancement New feature or request label Jul 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants