File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -20,9 +20,9 @@ Varnish automatically forwards the IP as ``X-Forwarded-For`` and leaves the
2020trusted proxy, Symfony will see all requests as coming through insecure HTTP
2121connections from the Varnish host instead of the real client.
2222
23- Remember to configure :ref: ` framework.trusted_proxies < reference-framework-trusted-proxies > `
24- in the Symfony configuration so that Varnish is seen as a trusted proxy and the
25- :ref: `X-Forwarded <varnish-x-forwarded-headers >` headers are used.
23+ Remember to call the :method: ` Symfony \\ Component \\ HttpFoundation \\ Request::setTrustedProxies `
24+ method in your front controller so that Varnish is seen as a trusted proxy
25+ and the :ref: `X-Forwarded <varnish-x-forwarded-headers >` headers are used.
2626
2727Varnish, in its default configuration, sends the ``X-Forwarded-For `` header but
2828does not filter out the ``Forwarded `` header. If you have access to the Varnish
You can’t perform that action at this time.
0 commit comments