diff --git a/lib/Controller/DocumentController.php b/lib/Controller/DocumentController.php index ddc79a47b6..dd4977c424 100644 --- a/lib/Controller/DocumentController.php +++ b/lib/Controller/DocumentController.php @@ -382,6 +382,7 @@ public function editOnlineTarget(int $fileId, ?string $target = null): RedirectR } #[PublicPage] + #[NoCSRFRequired] public function token(int $fileId, ?string $shareToken = null, ?string $path = null, ?string $guestName = null): DataResponse { try { $share = $shareToken ? $this->shareManager->getShareByToken($shareToken) : null;