remove duplicate CORS header

fixes #427
This commit is contained in:
Sarah Hoffmann
2016-04-12 23:04:38 +02:00
parent d01d0c13f4
commit af06d31d21

View File

@@ -592,7 +592,6 @@
function javascript_renderData($xVal, $iOptions = 0)
{
header("Access-Control-Allow-Origin: *");
if (defined('PHP_VERSION_ID') && PHP_VERSION_ID > 50400)
$iOptions |= JSON_UNESCAPED_UNICODE;
$jsonout = json_encode($xVal, $iOptions);