I have ad restful server and a web server in another domain for serving asset files.
In past both of this servers was same and serves in one server. and now I try to change the relative URLs to Explicit one.
Ordinary solution is changing all used URLs like this:
$http.post(DATA_SERVER_DOMAIN+"/service/method" )
instead of
$http.post("/service/method" )
is there any solution to set fixed domain for all $http or $resource requests in angularJS (for example in $httpprovider)
$resource. Then you just use the full URI in there$resource(or$service)