From a7346ef38c23c9baa037d319b3aac14e1c01be4a Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Thu, 7 Nov 2024 16:34:10 +0100 Subject: [PATCH] fix: Do not check for strict cookie when running webcron Signed-off-by: Ferdinand Thiessen --- lib/base.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/base.php b/lib/base.php index e3ac3f2ee83ad..4a18bedb8cd3e 100644 --- a/lib/base.php +++ b/lib/base.php @@ -577,7 +577,9 @@ private static function performSameSiteCookieProtection(\OCP\IConfig $config): v $processingScript = $processingScript[count($processingScript) - 1]; // index.php routes are handled in the middleware - if ($processingScript === 'index.php') { + // and cron.php does not need any authentication at all + if ($processingScript === 'index.php' + || $processingScript === 'cron.php') { return; }