--- lib/base.php 2025-07-10 07:54:02.000000000 -0700 +++ lib/base.php-new 2025-08-03 15:07:13.753368209 -0700 @@ -543,10 +543,11 @@ return; } + $requestUri = $request->getScriptName(); + $processingScript = explode('/', $requestUri); + $processingScript = $processingScript[count($processingScript) - 1]; + if (count($_COOKIE) > 0) { - $requestUri = $request->getScriptName(); - $processingScript = explode('/', $requestUri); - $processingScript = $processingScript[count($processingScript) - 1]; if ($processingScript === 'index.php' // index.php routes are handled in the middleware || $processingScript === 'cron.php' // and cron.php does not need any authentication at all @@ -569,6 +570,9 @@ } } } elseif (!isset($_COOKIE['nc_sameSiteCookielax']) || !isset($_COOKIE['nc_sameSiteCookiestrict'])) { + if ($processingScript === 'status.php') { + return; + } self::sendSameSiteCookies(); } }