diff --git a/src/app/Http/Controllers/API/V4/NGINXController.php b/src/app/Http/Controllers/API/V4/NGINXController.php --- a/src/app/Http/Controllers/API/V4/NGINXController.php +++ b/src/app/Http/Controllers/API/V4/NGINXController.php @@ -125,6 +125,11 @@ $username = $this->normalizeUsername($request->headers->get('Php-Auth-User', "")); $password = $request->headers->get('Php-Auth-Pw', null); + if (empty($username)) { + //Allow unauthenticated requests + return response(""); + } + if (empty($password)) { \Log::debug("Authentication attempt failed: Empty password provided."); return response("", 401);