mirror of
https://github.com/MarijnDoeve/TijdVoorDeTest.git
synced 2026-07-09 09:00:17 +02:00
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:
@@ -14,7 +14,7 @@ when@prod:
|
|||||||
# shortcut for private IP address ranges of your proxy
|
# shortcut for private IP address ranges of your proxy
|
||||||
trusted_proxies: 'private_ranges'
|
trusted_proxies: 'private_ranges'
|
||||||
# or, if your proxy instead uses the "Forwarded" header
|
# or, if your proxy instead uses the "Forwarded" header
|
||||||
trusted_headers: [ 'forwarded' ]
|
trusted_headers: [ 'x-forwarded-proto' ]
|
||||||
|
|
||||||
when@test:
|
when@test:
|
||||||
framework:
|
framework:
|
||||||
|
|||||||
Reference in New Issue
Block a user