From d0fa515f3ed5d821ec7dcc1d07b406ab82f25a96 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Mon, 23 Jun 2014 12:14:54 +0000 Subject: [PATCH] --- .htaccess | 2 +- inc/commons/class.common.tools.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.htaccess b/.htaccess index c0e6a6ea9..6c3b5295b 100644 --- a/.htaccess +++ b/.htaccess @@ -11,7 +11,7 @@ AddCharset UTF-8 log - Header set Access-Control-Allow-Origin "*" + Header merge Access-Control-Allow-Origin "*" diff --git a/inc/commons/class.common.tools.php b/inc/commons/class.common.tools.php index bfe8f74f8..fdc5e3ff8 100644 --- a/inc/commons/class.common.tools.php +++ b/inc/commons/class.common.tools.php @@ -517,8 +517,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'); + header('Access-Control-Allow-Origin: *', true); + header('Access-Control-Allow-Methods: GET', true); ob_end_clean(); echo cubeLang::getBrowserLang($available, true); exit; -- 2.39.5