HTTP_AUTHORIZATION should be enough
This commit is contained in:
parent
b2fe039dab
commit
4a6d33e182
|
@ -187,7 +187,6 @@ class BaseApi extends BaseModule
|
|||
private static function getUserByBearer()
|
||||
{
|
||||
$authorization = $_SERVER['HTTP_AUTHORIZATION'] ?? '';
|
||||
$authorization = $_SERVER['AUTHORIZATION'] ?? $authorization;
|
||||
|
||||
if (substr($authorization, 0, 7) != 'Bearer ') {
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue