{"action":"created","issue":{"url":"https://api.github.com/repos/visionmedia/superagent/issues/484","labels_url":"https://api.github.com/repos/visionmedia/superagent/issues/484/labels{/name}","comments_url":"https://api.github.com/repos/visionmedia/superagent/issues/484/comments","events_url":"https://api.github.com/repos/visionmedia/superagent/issues/484/events","html_url":"https://github.com/visionmedia/superagent/issues/484","id":46959645,"number":484,"title":"Cross domain error falsely thrown","user":{"login":"rickharrison","id":22048,"avatar_url":"https://avatars.githubusercontent.com/u/22048?v=3","gravatar_id":"","url":"https://api.github.com/users/rickharrison","html_url":"https://github.com/rickharrison","followers_url":"https://api.github.com/users/rickharrison/followers","following_url":"https://api.github.com/users/rickharrison/following{/other_user}","gists_url":"https://api.github.com/users/rickharrison/gists{/gist_id}","starred_url":"https://api.github.com/users/rickharrison/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rickharrison/subscriptions","organizations_url":"https://api.github.com/users/rickharrison/orgs","repos_url":"https://api.github.com/users/rickharrison/repos","events_url":"https://api.github.com/users/rickharrison/events{/privacy}","received_events_url":"https://api.github.com/users/rickharrison/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/visionmedia/superagent/labels/Browser","name":"Browser","color":"0b02e1"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":17,"created_at":"2014-10-27T21:07:28Z","updated_at":"2015-11-05T03:28:25Z","closed_at":null,"body":"I believe that I have been getting some falsely thrown CORs errors.\r\n\r\nhttps://github.com/visionmedia/superagent/blob/master/lib/client.js#L877\r\n\r\nI believe that when the page is refreshed or navigated away from while an XHR request is in flight, the browser will set the status to 0. Is there a better way to detect if it is specifically a cross domain error?"},"comment":{"url":"https://api.github.com/repos/visionmedia/superagent/issues/comments/153943865","html_url":"https://github.com/visionmedia/superagent/issues/484#issuecomment-153943865","issue_url":"https://api.github.com/repos/visionmedia/superagent/issues/484","id":153943865,"user":{"login":"magicdawn","id":4067115,"avatar_url":"https://avatars.githubusercontent.com/u/4067115?v=3","gravatar_id":"","url":"https://api.github.com/users/magicdawn","html_url":"https://github.com/magicdawn","followers_url":"https://api.github.com/users/magicdawn/followers","following_url":"https://api.github.com/users/magicdawn/following{/other_user}","gists_url":"https://api.github.com/users/magicdawn/gists{/gist_id}","starred_url":"https://api.github.com/users/magicdawn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magicdawn/subscriptions","organizations_url":"https://api.github.com/users/magicdawn/orgs","repos_url":"https://api.github.com/users/magicdawn/repos","events_url":"https://api.github.com/users/magicdawn/events{/privacy}","received_events_url":"https://api.github.com/users/magicdawn/received_events","type":"User","site_admin":false},"created_at":"2015-11-05T03:28:25Z","updated_at":"2015-11-05T03:28:25Z","body":"Since we can't tell what `status=0` means, we should not swallow the error.\r\n+1 on `Transport Error` & `err.status = 0`"}}