Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Drfraker's avatar

Laravel Forge Load Balancer Problems

I added a load balancer to my server stack using forge. Now with each page load all of the forms in the page have unsecure urls. this is the error that is showing up in the console.

Mixed Content: The page at 'https://domain.com/clients' was loaded over a secure connection, but contains a form that targets an insecure endpoint 'http://domain.com/userSettings/update'. This endpoint should be made available over a secure connection.

I have set up the TrustProxy middleware and added the IP address of the load balancer to it, but it still is not working. Any advice?

0 likes
1 reply
Drfraker's avatar

In case anyone else has a problem like this, the issue was that I added the public IP address to the trusted proxies middleware. Chris Fidao was kind enough to show me that I needed to add the private IP address to the array.

Please or to participate in this conversation.