Aug 16, 2023
0
Level 2
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
Please or to participate in this conversation.