Just for my documentation, to fix this error just make sure add this on proxy middleware laravel.

protect $proxies = "*";

The reason i think because i use nginx for proxy_pass from docker to public.

That’s it, just for my documentation. if you found this article, congratulation please share this article just for say thanks to me :v.

If your issue is not solve with this solution, maybe our problem is different