aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/inc/Remote/XmlRpcServer.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/Remote/XmlRpcServer.php')
-rw-r--r--inc/Remote/XmlRpcServer.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/inc/Remote/XmlRpcServer.php b/inc/Remote/XmlRpcServer.php
index e1f3918dc..fec958ca7 100644
--- a/inc/Remote/XmlRpcServer.php
+++ b/inc/Remote/XmlRpcServer.php
@@ -32,6 +32,10 @@ class XmlRpcServer extends Server
if (!$conf['remote']) {
throw new ServerException("XML-RPC server not enabled.", -32605);
}
+ if (!empty($conf['remotecors'])) {
+ header('Access-Control-Allow-Origin: ' . $conf['remotecors']);
+ }
+
parent::serve($data);
}