I've also done a few other things but still not working.
I've enabled TrustHosts as described on the docs https://laravel.com/docs/10.x/requests#configuring-trusted-proxies since my ec2 is running behind the ELB but still didn't work.
I've also tried to force https schema on the web.php routes file since I've seen some projects doing this but also didn't work.
if (config('app.force_https')) {
URL::forceScheme('https');
}
It is
api app
APP_URL=https://api.mydomain.com.br:${APP_PORT}
app
APP_URL=https://painel.mydomain.com.br:${APP_PORT}
Did you run php artisan config:cache after changing the APP_URL values? (Or is the config not cached) else it keeps the old values.
Else it need to be something with your load balancer but to be honest I don't know how to solve that.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community