We've got a new project deployed to aws which works fine locally but on aws the login screen breaks due to css and js files not getting requested over https
This request has been blocked; the content must be served over HTTPS.
I've seen a number of threads that suggest adding
URL::forceScheme('https'); or \URL::forceScheme('https'); to AppServiceProvider or RouteServiceProvider will fix it, but when I test locally it breaks same way as on deploy.
I've also seen this cited as a solution: \Illuminate\Support\Facades\URL::forceScheme('https');
which also doesn't work and breaks site in local.
ok, so I had to fix a couple deploy issues unrelated, and then retried adding $url->forceScheme('https'); to the boot method of AppServiceProvider and its working now.