{"action":"created","issue":{"url":"https://api.github.com/repos/phonegap/phonegap-app-desktop/issues/375","labels_url":"https://api.github.com/repos/phonegap/phonegap-app-desktop/issues/375/labels{/name}","comments_url":"https://api.github.com/repos/phonegap/phonegap-app-desktop/issues/375/comments","events_url":"https://api.github.com/repos/phonegap/phonegap-app-desktop/issues/375/events","html_url":"https://github.com/phonegap/phonegap-app-desktop/issues/375","id":89568475,"number":375,"title":"$.ajax calls to http://localhost:45678 fail but external requests work fine","user":{"login":"theogray","id":12847575,"avatar_url":"https://avatars.githubusercontent.com/u/12847575?v=3","gravatar_id":"","url":"https://api.github.com/users/theogray","html_url":"https://github.com/theogray","followers_url":"https://api.github.com/users/theogray/followers","following_url":"https://api.github.com/users/theogray/following{/other_user}","gists_url":"https://api.github.com/users/theogray/gists{/gist_id}","starred_url":"https://api.github.com/users/theogray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theogray/subscriptions","organizations_url":"https://api.github.com/users/theogray/orgs","repos_url":"https://api.github.com/users/theogray/repos","events_url":"https://api.github.com/users/theogray/events{/privacy}","received_events_url":"https://api.github.com/users/theogray/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/phonegap/phonegap-app-desktop/labels/PhoneGap%20Developer%20Mobile%20App","name":"PhoneGap Developer Mobile App","color":"5319e7"},{"url":"https://api.github.com/repos/phonegap/phonegap-app-desktop/labels/user%20support","name":"user support","color":"412a11"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/phonegap/phonegap-app-desktop/milestones/17","html_url":"https://github.com/phonegap/phonegap-app-desktop/milestones/User%20Support","labels_url":"https://api.github.com/repos/phonegap/phonegap-app-desktop/milestones/17/labels","id":917415,"number":17,"title":"User Support","description":"","creator":{"login":"hermwong","id":107754,"avatar_url":"https://avatars.githubusercontent.com/u/107754?v=3","gravatar_id":"","url":"https://api.github.com/users/hermwong","html_url":"https://github.com/hermwong","followers_url":"https://api.github.com/users/hermwong/followers","following_url":"https://api.github.com/users/hermwong/following{/other_user}","gists_url":"https://api.github.com/users/hermwong/gists{/gist_id}","starred_url":"https://api.github.com/users/hermwong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hermwong/subscriptions","organizations_url":"https://api.github.com/users/hermwong/orgs","repos_url":"https://api.github.com/users/hermwong/repos","events_url":"https://api.github.com/users/hermwong/events{/privacy}","received_events_url":"https://api.github.com/users/hermwong/received_events","type":"User","site_admin":false},"open_issues":27,"closed_issues":24,"state":"open","created_at":"2014-12-30T07:11:35Z","updated_at":"2015-06-19T17:40:07Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-06-19T13:46:50Z","updated_at":"2015-06-22T14:03:27Z","closed_at":null,"body":"Phonegap Desktop v0.1.7\r\n\r\nOur app accesses our own back end services which during development are run from URLs like `http://localhost:45678/api/jobs`\r\n\r\nThis works fine when calls are made from an older version of Phonegap Developer App running on Android (v1.4.0), but with latest Phonegap Developer v1.5.3 on iOS these calls fail - $.ajax returns `{readyState:0, status:0, statusText:\"error\"}`\r\n\r\nIf I switch our app to use our live back end services (e.g. `https://example.com/api/jobs`) then calls work fine, but this means we can't test against our internal data on Phonegap Developer at the moment."},"comment":{"url":"https://api.github.com/repos/phonegap/phonegap-app-desktop/issues/comments/114113771","html_url":"https://github.com/phonegap/phonegap-app-desktop/issues/375#issuecomment-114113771","issue_url":"https://api.github.com/repos/phonegap/phonegap-app-desktop/issues/375","id":114113771,"user":{"login":"theogray","id":12847575,"avatar_url":"https://avatars.githubusercontent.com/u/12847575?v=3","gravatar_id":"","url":"https://api.github.com/users/theogray","html_url":"https://github.com/theogray","followers_url":"https://api.github.com/users/theogray/followers","following_url":"https://api.github.com/users/theogray/following{/other_user}","gists_url":"https://api.github.com/users/theogray/gists{/gist_id}","starred_url":"https://api.github.com/users/theogray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theogray/subscriptions","organizations_url":"https://api.github.com/users/theogray/orgs","repos_url":"https://api.github.com/users/theogray/repos","events_url":"https://api.github.com/users/theogray/events{/privacy}","received_events_url":"https://api.github.com/users/theogray/received_events","type":"User","site_admin":false},"created_at":"2015-06-22T14:03:27Z","updated_at":"2015-06-22T14:03:27Z","body":"@hermwong I have tried with IP address of PC to check, but the dev side is running on IIS Express so only binding to port numbers on `127.0.0.1` (and possibly `::1`) by the looks of it. I have also tried with a custom host (`mycomputer.example.com`) specified in the hosts file on a dev PC pointing at `127.0.0.1` (plus port number) and no joy there.\r\n\r\nMoving to full IIS instead of IIS Express is not simple due to having to set that up on every dev PC and also only being able to bind one debugger at a time (so only able to debug one back end service at a time).\r\n\r\nAs this doesn't affect v1.4.0 of Phonegap Developer on Android (against the same Desktop App) I wonder whether this is an issue in latest versions of Phonegap Developer rather than a Phonegap Desktop issue. I would prefer not to upgrade Android app at the moment to see as I don't want to lose ability to test on both my devices.\r\n\r\nAre you able to reproduce the problem or have an idea of what code change might have caused it?"}}