Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/passman.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrantje <brantje@gmail.com>2017-01-19 15:39:01 +0300
committerbrantje <brantje@gmail.com>2017-01-19 15:39:01 +0300
commitd509bbd160c3c2d294e0a0091c01ae2ea1b4188f (patch)
tree5a56a35ddd9d9cfb2b7d1ca4599305cb4b4b4063 /controller/filecontroller.php
parent2a793870ace5043648679a8ce16e1fb1a2da22d6 (diff)
Fix cors headers
Diffstat (limited to 'controller/filecontroller.php')
-rw-r--r--controller/filecontroller.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/controller/filecontroller.php b/controller/filecontroller.php
index 7a025516..c2d151a8 100644
--- a/controller/filecontroller.php
+++ b/controller/filecontroller.php
@@ -24,7 +24,12 @@ class FileController extends ApiController {
IRequest $request,
$UserId,
FileService $fileService){
- parent::__construct($AppName, $request);
+ parent::__construct(
+ $AppName,
+ $request,
+ 'GET, POST, DELETE, PUT, PATCH, OPTIONS',
+ 'Authorization, Content-Type, Accept',
+ 86400);
$this->userId = $UserId;
$this->fileService = $fileService;
}