diff --git a/src/Controller/DAVController.php b/src/Controller/DAVController.php index 0fb6ea0..7e12263 100644 --- a/src/Controller/DAVController.php +++ b/src/Controller/DAVController.php @@ -295,6 +295,10 @@ private function initExceptionListener() */ public function dav(Request $request, string $path) { + if ($request->getMethod() === "OPTIONS") { + return new Response(); + } + // \Sabre\DAV\Server does not let us use a custom SAPI, and its behaviour // is to directly output headers and content to php://output. Hence, we // let the headers pass (we have not choice) and capture the output in a