access origin - so everything can be displayed - not 100% sure if secure...

This commit is contained in:
Ulf Gebhardt 2014-05-20 01:33:36 +02:00
parent 9e3a2fd952
commit 48d78ac5c2
2 changed files with 2 additions and 2 deletions

View File

@ -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.");

View File

@ -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();