Which to $resource

$resource has to be used. "AJAX calls cannot be sent to a different
domain than the domain from which the HTML page making the AJAX calls is
loaded"