Skip to content

Commit 0633769

Browse files
committed
fix(proxy): trusted_headers must be YAML list in Symfony 5.4, not env string
1 parent 5fdbc73 commit 0633769

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

config/packages/framework.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,12 @@ framework:
2121
default_locale: "en"
2222
trusted_hosts: ~
2323
trusted_proxies: '%env(SYMFONY_TRUSTED_PROXIES)%'
24-
trusted_headers: '%env(SYMFONY_TRUSTED_HEADERS)%'
24+
trusted_headers:
25+
- x-forwarded-for
26+
- x-forwarded-host
27+
- x-forwarded-proto
28+
- x-forwarded-port
29+
- x-forwarded-prefix
2530
# error_controller: Symfony\Bundle\TwigBundle\Controller\ExceptionController::showAction
2631

2732
# Enables session support. Note that the session will ONLY be started if you read or write from it.

0 commit comments

Comments
 (0)