From 48d78ac5c2ee35f75c785ba1c0fb94684542a69f Mon Sep 17 00:00:00 2001 From: rylon Date: Tue, 20 May 2014 01:33:36 +0200 Subject: [PATCH] access origin - so everything can be displayed - not 100% sure if secure... --- index.php | 3 +-- sai.php | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index 9ef55e6..f1739f9 100644 --- a/index.php +++ b/index.php @@ -9,7 +9,6 @@ SYSTEM\system::start($danube_config); SYSTEM\system::include_ExceptionShortcut(); //allow ERROR() instead of \SYSTEM\LOG\ERROR() SYSTEM\system::include_ResultShortcut(); //allow JsonResult() instead of \SYSTEM\LOG\JsonResult() -//$page = new \SYSTEM\PAGE\PageApi(new SYSTEM\API\verify(), new PageApi()); -//echo $page->CALL(array_merge($_POST,$_GET))->html(); +header('Access-Control-Allow-Origin: *'); echo \SYSTEM\API\api::run('\SYSTEM\API\verify', 'page_danube', array_merge($_POST,$_GET),1,false,true)->html(); new \SYSTEM\LOG\COUNTER("Page was called sucessfully."); \ No newline at end of file diff --git a/sai.php b/sai.php index 8ccecb7..ec5485f 100644 --- a/sai.php +++ b/sai.php @@ -13,5 +13,6 @@ require_once '../system/sai/autoload.inc.php'; require_once 'danube/sai/autoload.inc.php'; require_once 'danube/sai/register_modules.php'; +header('Access-Control-Allow-Origin: *'); $sai = new SYSTEM\SAI\saigui(); echo $sai->html(); \ No newline at end of file