proto fix
This commit is contained in:
@@ -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/';
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user