From df8fc83bf3aecd653bcfcb81d43dae177d449bd0 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Fri, 4 May 2012 15:59:11 +0000 Subject: [PATCH] --- inc/commons/class.common.tools.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/inc/commons/class.common.tools.php b/inc/commons/class.common.tools.php index 7f5d40590..39c54d5a1 100644 --- a/inc/commons/class.common.tools.php +++ b/inc/commons/class.common.tools.php @@ -257,6 +257,8 @@ class commonTools { public static function getDefaultLanguage() { $available = explode(',', $_GET['available']); header('Content-type: text/plain'); + header('Access-Control-Allow-Origin: *'); + header('Access-Control-Allow-Methods: GET'); ob_end_clean(); echo cubeLang::getBrowserLang($available, true); exit; -- 2.39.5