Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

$resource does not obey port numbers in URLs #1665

Closed
jsyrjala opened this issue Dec 6, 2012 · 1 comment
Closed

$resource does not obey port numbers in URLs #1665

jsyrjala opened this issue Dec 6, 2012 · 1 comment

Comments

@jsyrjala
Copy link
Contributor

jsyrjala commented Dec 6, 2012

Following code fails because browser ends up making query to URL http://198.61.201.6:8000/api/v1-dev/trackers using standard http port 80 and ignores port I specified in URL.

Tested on versions 1.0.2, 1.0.3, 1.1.0 and 1.1.0.

    var Tracker = $resource('http://198.61.201.6:8000/api/v1-dev/trackers');

    $scope.fetchTrackers = function() {
        this.trackers = Tracker.get();
    };
@jsyrjala
Copy link
Contributor Author

jsyrjala commented Dec 6, 2012

duplicate with #1664.

@jsyrjala jsyrjala closed this as completed Dec 6, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant