Bump X-Forwarded-For trust to 2 proxies
Some checks failed
Run tests / test (pull_request) Failing after 34s

This commit is contained in:
Jaroslav Groman 2026-06-18 09:12:18 +00:00
commit a71ff8c9dc

View file

@ -53,7 +53,7 @@ class Config(object):
# normalize duplicated X-Forwarded-Host values first. Without it,
# werkzeug >= 3.1.7 rejects the comma-separated hostname as invalid
# (returns empty string or raises SecurityError with trusted_hosts).
PROXYFIX_X_FOR = 1
PROXYFIX_X_FOR = 2
PROXYFIX_X_PROTO = 1
PROXYFIX_X_HOST = 0 # see note above before enabling
PROXYFIX_X_PORT = 0