allow cross domain requests for json

This commit is contained in:
Ulf Gebhardt 2013-12-21 06:17:18 +01:00
parent a256e8a4bb
commit 1674238ade

View File

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