Skip to content

"Behind a Proxy" changed behaviour in the new version 0.109.0 #10948

Answered by tiangolo
neugeeug asked this question in Questions
Discussion options

You must be logged in to vote

Thank you! Indeed, this is an issue, it's because recently Starlette was updated to more strictly follow the ASGI specification, and now, since versions 0.34.0 and 0.35.0 it is more correct, nevertheless, Uvicorn needs the same/equivalent change.

Uvicorn has an ongoing PR here: #10978

Once that is taken and there's a new release including it, that will be solved. As a temporary workaround, you can pin FastAPI to a previous version (that depended on a previous version of Starlette), or you might try Hypercorn.

I created an issue to track this here: #10978

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@mawiegand
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@neugeeug
Comment options

Answer selected by tiangolo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Question or problem
5 participants