Why does APP_URL's protocol get ignored?
Created 7 years ago by mazedlx

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  —  7 years ago

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

mazedlx  —  7 years 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?