I was wondering if HTTP Interceptors in AngularJS cause a performance hit?
I want to intercept requests and prepend the absolute URL:
angular.module('app').config(['$httpProvider', function ($httpProvider) {
$httpProvider.interceptors.push(function () {
return {
request: function (config) {
config.url = 'http://localhost:9060/' + config.url;
}
};
});
}]);