Attempting to invoke a URL through my AngularJS service, I have encountered an issue where a particular call is not reaching the intended URL.
The following code snippet depicts the function responsible for making the call, along with a console.log
statement displaying the same URL that should be accessed:
this.getCategoriesByParent = function(parent) {
console.log('http://localhost/cloqet_server/public/categories/subcategories/' + parent);
return $http.get('http://localhost/cloqet_server/public/categories/subcategories/' + parent);
}
Upon inspection of the console output:
What could potentially be causing this discrepancy?