Closed ClaudioTesta closed 6 years ago
Hi!
Thanks for the detailed question - I believe in this case, you need to adjust file trustedproxy.php
and set the value of proxies
to a string instead of an array:
<?php
// From:
return [
'proxies' => [
'**',
],
// ...
];
// To:
return [
'proxies' => '**',
// ...
];
Pretty sure I tested this before but looks like it works now. Thank you very much :)
Hey i'm using Laravel 5.4 and wanted to use this package in my laravel application behind a reverse proxy but somehow its not working. When I print out the
$request->getScheme()
and$request->getClientIp()
they do not return the informations from my proxy forward variable.Im not sure how to fix this or what might be the problem. Any idea how to solve or debug this any further ?
Here is my
$_SERVER
printout:My
trustedproxy.php
(tried different headers without success):My
App/Kernel.php
My
config/app.php