Merge pull request #482 from appwrite/missing-origin-protocol
Missing origin protocol
This commit is contained in:
commit
d95d894e56
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ App::init(function ($utopia, $request, $response, $console, $project, $user, $lo
|
|||
$protocol = \parse_url($request->getOrigin($referrer), PHP_URL_SCHEME);
|
||||
$port = \parse_url($request->getOrigin($referrer), PHP_URL_PORT);
|
||||
|
||||
$refDomain = $protocol.'://'.((\in_array($origin, $clients))
|
||||
$refDomain = (!empty($protocol) ? $protocol : $request->getProtocol()).'://'.((\in_array($origin, $clients))
|
||||
? $origin : 'localhost') . (!empty($port) ? ':'.$port : '');
|
||||
|
||||
$selfDomain = new Domain($request->getHostname());
|
||||
|
|
Loading…
Reference in a new issue