X-Forwarded-For header / trusted_proxies setting not working

I’m under impression trusted_proxies format is little “limited”… I have the feeling it only accepts IP ranges with CIDR network mask… see Your "trusted_proxies" setting is not correctly set, it should be an array of IP addresses - optionally with range in CIDR notation

for this reason I would start with lazy config

'trusted_proxies' =>
  array (
    0 => 'fe80::/10',
    1 => 'fc00::/7',
  ),

like described here:

and tighten it once it works.