]> git.openstreetmap.org Git - nominatim.git/commitdiff
remove duplicate CORS header
authorSarah Hoffmann <lonvia@denofr.de>
Tue, 12 Apr 2016 21:04:38 +0000 (23:04 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Tue, 12 Apr 2016 21:04:38 +0000 (23:04 +0200)
fixes #427

lib/lib.php

index 75e72b4ce6b741d053d0241d6bf71ed3872d90ac..897db8e7ff58484efe7863839fd508e4c26dd612 100644 (file)
 
        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);