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

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@googlemail.com>2014-09-15 16:00:11 +0400
committerThomas Steur <thomas.steur@googlemail.com>2014-09-15 16:00:23 +0400
commit76cef69bee1727ca5a165810594476584e6bdd62 (patch)
treeaa5ec390d4aada9c9bbb9a644e9f023587b7e426 /core/Tracker.php
parent5172e41a9f00166a3beae2788152b2b964e7abd5 (diff)
refs #4996 set CORS header if bulk request is used
Diffstat (limited to 'core/Tracker.php')
-rw-r--r--core/Tracker.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/Tracker.php b/core/Tracker.php
index eee101a4f5..733f23d8a3 100644
--- a/core/Tracker.php
+++ b/core/Tracker.php
@@ -507,6 +507,9 @@ class Tracker
'status' => 'success',
'tracked' => $this->countOfLoggedRequests
);
+
+ $this->outputAccessControlHeaders();
+
Common::sendHeader('Content-Type: application/json');
echo Common::json_encode($result);
exit;