File tree 1 file changed +3
-3
lines changed 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
20
20
trusted proxy, Symfony will see all requests as coming through insecure HTTP
21
21
connections from the Varnish host instead of the real client.
22
22
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.
26
26
27
27
Varnish, in its default configuration, sends the ``X-Forwarded-For `` header but
28
28
does 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