diff options
author | brantje <brantje@gmail.com> | 2017-01-19 15:39:01 +0300 |
---|---|---|
committer | brantje <brantje@gmail.com> | 2017-01-19 15:39:01 +0300 |
commit | d509bbd160c3c2d294e0a0091c01ae2ea1b4188f (patch) | |
tree | 5a56a35ddd9d9cfb2b7d1ca4599305cb4b4b4063 /controller/filecontroller.php | |
parent | 2a793870ace5043648679a8ce16e1fb1a2da22d6 (diff) |
Fix cors headers
Diffstat (limited to 'controller/filecontroller.php')
-rw-r--r-- | controller/filecontroller.php | 7 |
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; } |