Why does APP_URL's protocol get ignored?

mazedlx - 7 months ago

Hi there!

in my .env I've set APP_URL=https://mysite.net but the https gets ignored, every link that is displayed gets served as http. What am I doing wrong? Forcing \URL::forceSchema('https'); in Laravel's AppServiceProvider.phps boot() method doesn't work either. Any help would be greatly appreciated.

ryanthompson - 6 months ago

I believe this is only used during Artisan commands. Otherwise the host / protocol is used from the request.

mazedlx - 6 months ago

Thank you for your reply. Where do I go from here? I open https://mysite.net and all links from navigation to relative ones get served as http. I could live with hard-coding https, but where do I start?