summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorctucx <leah@antifa.jetzt>2020-06-27 20:23:08 +0200
committerctucx <leah@antifa.jetzt>2020-06-27 20:23:08 +0200
commit1eaf3102b69aa96473ae30fdc33ce09fb345b11f (patch)
tree1cd091f8e558d21c5891b84c69d813d89af171dd
parent41b3003639fab451a92dec336a4afba64824b9c7 (diff)
downloadtinyDAV-1eaf3102b69aa96473ae30fdc33ce09fb345b11f.tar.gz
tinyDAV-1eaf3102b69aa96473ae30fdc33ce09fb345b11f.tar.bz2
tinyDAV-1eaf3102b69aa96473ae30fdc33ce09fb345b11f.zip
fix cors i guess
-rw-r--r--public/dav.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/public/dav.php b/public/dav.php
index 3c2ffee..42b17f4 100644
--- a/public/dav.php
+++ b/public/dav.php
@@ -8,6 +8,8 @@ ini_set('memory_limit', '1024M');
define("PATH", __DIR__.'/');
date_default_timezone_set('Europe/Berlin');
+header("Access-Control-Allow-Origin: *");
+
if (!file_exists('vendor/')) {
die('<h1>Incomplete installation</h1>Dependencies have not been installed.');
}
@@ -72,4 +74,4 @@ $server->addPlugin(new FilesPlugin\Plugin(PATH.'data/files/'));
//Fancy Web
$server->addPlugin(new Sabre\DAV\Browser\Plugin());
-$server->exec(); \ No newline at end of file
+$server->exec();