From 1674238adef25570baa83062414807b61320018d Mon Sep 17 00:00:00 2001 From: rylon Date: Sat, 21 Dec 2013 06:17:18 +0100 Subject: [PATCH] allow cross domain requests for json --- system/HEADER.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/system/HEADER.php b/system/HEADER.php index 7bacb98..729c838 100644 --- a/system/HEADER.php +++ b/system/HEADER.php @@ -12,9 +12,8 @@ class HEADER { public static function JSON(){ self::checkHeader(); + header('Access-Control-Allow-Origin: *');//allow cross domain calls header('content-type: application/json'); - //header('Access-Control-Allow-Methods", "POST, GET, OPTIONS'); - //header('Access-Control-Allow-Headers *'); } public static function PNG(){ self::checkHeader();