summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/Server.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2018-05-22 13:40:54 +0200
committerRobin Appelman <robin@icewind.nl>2018-06-01 17:20:42 +0200
commitea4f4b8417653b47a61952d74804359e0bd0cc46 (patch)
tree1b51e8034064df2196fcfaff0b8b3b865a33dc6f /apps/dav/lib/Server.php
parent38c38eec7989fab33a7cbfd829ce6e7c610855f1 (diff)
downloadnextcloud-server-ea4f4b8417653b47a61952d74804359e0bd0cc46.tar.gz
nextcloud-server-ea4f4b8417653b47a61952d74804359e0bd0cc46.zip
Add sabre plugin to allow anonymous options requests to the dav root
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/dav/lib/Server.php')
-rw-r--r--apps/dav/lib/Server.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/dav/lib/Server.php b/apps/dav/lib/Server.php
index 82978711156..b9f411ae7ec 100644
--- a/apps/dav/lib/Server.php
+++ b/apps/dav/lib/Server.php
@@ -52,6 +52,7 @@ use OCA\DAV\DAV\PublicAuth;
use OCA\DAV\DAV\CustomPropertiesBackend;
use OCA\DAV\Connector\Sabre\QuotaPlugin;
use OCA\DAV\Files\BrowserErrorPagePlugin;
+use OCA\DAV\Connector\Sabre\AnonymousOptionsPlugin;
use OCA\DAV\SystemTag\SystemTagPlugin;
use OCA\DAV\Upload\ChunkingPlugin;
use OCP\IRequest;
@@ -99,6 +100,7 @@ class Server {
$this->server->setBaseUri($this->baseUri);
$this->server->addPlugin(new BlockLegacyClientPlugin(\OC::$server->getConfig()));
+ $this->server->addPlugin(new AnonymousOptionsPlugin());
$authPlugin = new Plugin();
$authPlugin->addBackend(new PublicAuth());
$this->server->addPlugin($authPlugin);