You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using forwarded_prefix to construct absolute URLs, it does not contain the port when the application is not behind a reverse proxy.
This happens because forwarded_prefix uses forwarded_host, which falls back to the host property when the Forwarded and X-Forwarded-Host HTTP headers are not set.
It seems that falling back to netloc (like in prefix) would solve the problem.
The text was updated successfully, but these errors were encountered:
Thanks for using Falcon. The large amount of time and effort needed to
maintain the project and develop new features is not sustainable without
the generous financial support of community members like you.
Please consider helping us secure the future of the Falcon framework with a
one-time or recurring donation.
Thank you for your support!
hackedd
added a commit
to hackedd/falcon
that referenced
this issue
Feb 20, 2020
When using
forwarded_prefix
to construct absolute URLs, it does not contain the port when the application is not behind a reverse proxy.This happens because
forwarded_prefix
usesforwarded_host
, which falls back to thehost
property when theForwarded
andX-Forwarded-Host
HTTP headers are not set.It seems that falling back to
netloc
(like inprefix
) would solve the problem.The text was updated successfully, but these errors were encountered: