add
header('Access-Control-Allow-Origin:*');
header('Access-Control-Allow-Origin:*');
Merge branch 'master' of https://github.com/DavidSalzer/Smart-Class