From 5f6f6175664a0d67d34fd543899a1a5b91d1aafa Mon Sep 17 00:00:00 2001 From: "DESKTOP-GBA0BK8\\Admin" Date: Sat, 1 Apr 2023 21:36:56 -0400 Subject: [PATCH] proto fix --- app/Config/App.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/Config/App.php b/app/Config/App.php index 8f7239a..3be8aa4 100644 --- a/app/Config/App.php +++ b/app/Config/App.php @@ -23,6 +23,13 @@ class App extends BaseConfig * * @var string */ + + public function __construct() + { + $protocol = stripos($_SERVER['SERVER_PROTOCOL'],'https') === 0 ? 'https://' : 'http://'; + $this->baseURL = $protocol.$_SERVER['HTTP_HOST']; + } + public $baseURL = 'http://localhost:7072/'; /**