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

timersys's avatar

http on redirects behind a balancer

I do use laravel forge behind a load balancer.

I configured trusted proxies

SSL only configured on the balancer

My app URL is starting with https:// and the whole site it's working fine on https

For some reason when I use return redirect( route( 'route-name') ); the resulting URL is coming with HTTP and because I´m using it inside an iframe it refuses to display because my app is using https.

I tried setting \URL::forceScheme('https'); in the boot method , but when I do this the verify email signature fails so my new users cannot register on the site.

I´m clueless on what yo try next

0 likes
0 replies

Please or to participate in this conversation.