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
I'd like to run Fresh behind a reverse proxy for both development and production. However, currently Fresh does not respect X-Forwarded-* headers, so when I try to get ctx.url it returns an http:// URL instead of https:// URL even though an X-Forwarded-Proto: https header is provided.
So, it would be nice if App.listen() has an option to let Fresh respect X-Forwarded-Proto and X-Forwarded-Host headers. Would it be a good idea? If so, I'd like to send a pull request.
The text was updated successfully, but these errors were encountered:
dahlia
added a commit
to dahlia/fresh
that referenced
this issue
Sep 29, 2024
I'd like to run Fresh behind a reverse proxy for both development and production. However, currently Fresh does not respect
X-Forwarded-*
headers, so when I try to getctx.url
it returns anhttp://
URL instead ofhttps://
URL even though anX-Forwarded-Proto: https
header is provided.So, it would be nice if
App.listen()
has an option to let Fresh respectX-Forwarded-Proto
andX-Forwarded-Host
headers. Would it be a good idea? If so, I'd like to send a pull request.The text was updated successfully, but these errors were encountered: