[SOLVED] CORS with Ionic

If somebody needed to enable this from PHP here it is:

<?
header('Access-Control-Allow-Origin: *');
header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept");
?>

There’s also a way by using .htaccess

Cheers,
Rafal