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 have an application whose behavior changes (generates https:// vs. http:// URLs, set Secure flag on cookies) depending on whether it runs behind a TLS-terminating reverse proxy (production, HAProxy) or not (local dev, plain HTTP). This is done switching on a X-Forwarded-Proto request header (if set to https, we're behind the reverse proxy, otherwise –not set, or other value– we're not).
I'd like to easily test it locally using HTTPS, from time to time, to verify the expected in-production logic.
Looking around for a simple reverse-proxy with TLS support for development, I found devd, but it doesn't add X-Forwarded-Proto.
The text was updated successfully, but these errors were encountered:
I have an application whose behavior changes (generates
https://
vs.http://
URLs, setSecure
flag on cookies) depending on whether it runs behind a TLS-terminating reverse proxy (production, HAProxy) or not (local dev, plain HTTP). This is done switching on aX-Forwarded-Proto
request header (if set tohttps
, we're behind the reverse proxy, otherwise –not set, or other value– we're not).I'd like to easily test it locally using HTTPS, from time to time, to verify the expected in-production logic.
Looking around for a simple reverse-proxy with TLS support for development, I found devd, but it doesn't add
X-Forwarded-Proto
.The text was updated successfully, but these errors were encountered: