Update X-Forwarded-Proto to 2 for consistency with X-Forwarded-For.
Some checks failed
Run tests / test (pull_request) Failing after 33s

This commit is contained in:
Jaroslav Groman 2026-06-18 10:20:42 +00:00
commit 228a5155a0

View file

@ -54,7 +54,7 @@ class Config(object):
# werkzeug >= 3.1.7 rejects the comma-separated hostname as invalid
# (returns empty string or raises SecurityError with trusted_hosts).
PROXYFIX_X_FOR = 2
PROXYFIX_X_PROTO = 1
PROXYFIX_X_PROTO = 2
PROXYFIX_X_HOST = 0 # see note above before enabling
PROXYFIX_X_PORT = 0
PROXYFIX_X_PREFIX = 0