Skip to content

Commit 7ed72e1

Browse files
Merge pull request #49130 from nextcloud/fix/cron-strict-cookie
fix: Do not check for strict cookie when running webcron
2 parents d1e9267 + 0cd626a commit 7ed72e1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/base.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,9 @@ private static function performSameSiteCookieProtection(\OCP\IConfig $config): v
517517
$processingScript = $processingScript[count($processingScript) - 1];
518518

519519
// index.php routes are handled in the middleware
520-
if ($processingScript === 'index.php') {
520+
// and cron.php does not need any authentication at all
521+
if ($processingScript === 'index.php'
522+
|| $processingScript === 'cron.php') {
521523
return;
522524
}
523525

0 commit comments

Comments
 (0)