I have an angular.js application and i need to do CORS request.
I want to define my rest services \"the angular\" using angular resources, described here: http://doc
URL for $resource accepts using colon for parameters. Therefore when using port in url you need to escape the colon for port. This is explained in $resource docs
$resource