fix: trust X-Forwarded-Proto header from Traefik proxy (#189)

Traefik terminates TLS and forwards requests over HTTP internally,
setting X-Forwarded-Proto: https. Without trusting this header,
Symfony generates http:// URLs (e.g. in password reset emails).
This commit is contained in:
2026-07-08 09:45:07 +02:00
committed by GitHub
parent 04c40412cd
commit 5d92d91432
+1 -1
View File
@@ -14,7 +14,7 @@ when@prod:
# shortcut for private IP address ranges of your proxy
trusted_proxies: 'private_ranges'
# or, if your proxy instead uses the "Forwarded" header
trusted_headers: [ 'forwarded' ]
trusted_headers: [ 'x-forwarded-proto' ]
when@test:
framework: