', sprintf('', WWW_URL), $out); } return $out; } public function http_options(): void { parent::http_options(); if (ACCESS_CONTROL_ALL) { header('Access-Control-Allow-Origin: *'); header('Access-Control-Allow-Credentials: true'); header('Access-Control-Allow-Headers: Authorization, *'); header('Access-Control-Allow-Methods: GET,HEAD,PUT,DELETE,COPY,MOVE,PROPFIND,MKCOL,LOCK,UNLOCK'); } } public function log(string $message, ...$params) { http_log('DAV: ' . $message, ...$params); } /** * Utility function to create HMAC hash of data, useful for NextCloud and WOPI */ static public function hmac(array $data, string $key = '') { $key = SECRET_KEY . sha1($key); return parent::hmac($data, $key); } }