proto fix

This commit is contained in:
DESKTOP-GBA0BK8\Admin
2023-04-01 21:36:56 -04:00
parent a16edcf5ec
commit 5f6f617566
+7
View File
@@ -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/';
/**