I have a free server and a web server in another domain for serving asset files.
In the past, both of these servers were the same and were served on the same server. and now I'm trying to change the relative URLs to Explicit.
A typical solution modifies all the URLs used as follows:
$http.post(DATA_SERVER_DOMAIN+"/service/method" )
instead
$http.post("/service/method" )
is there any solution to set a fixed domain for all $http or $resource requests in angularJS (e.g. $ httpprovider)
source share