summaryrefslogtreecommitdiff
path: root/jsonrpc.php
diff options
context:
space:
mode:
Diffstat (limited to 'jsonrpc.php')
-rw-r--r--jsonrpc.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/jsonrpc.php b/jsonrpc.php
index c3de1fc5..6c4b9d3d 100644
--- a/jsonrpc.php
+++ b/jsonrpc.php
@@ -3,6 +3,7 @@
require __DIR__.'/app/common.php';
$server = new JsonRPC\Server;
+$server->setAuthenticationHeader(API_AUTHENTICATION_HEADER);
$server->before('authentication');
$server->attach(new Api\Action($container));
$server->attach(new Api\App($container));