{"action":"created","issue":{"url":"https://api.github.com/repos/meteor/meteor/issues/4132","labels_url":"https://api.github.com/repos/meteor/meteor/issues/4132/labels{/name}","comments_url":"https://api.github.com/repos/meteor/meteor/issues/4132/comments","events_url":"https://api.github.com/repos/meteor/meteor/issues/4132/events","html_url":"https://github.com/meteor/meteor/issues/4132","id":66459969,"number":4132,"title":"Cordova CORS issue","user":{"login":"Tarang","id":1616628,"avatar_url":"https://avatars.githubusercontent.com/u/1616628?v=3","gravatar_id":"","url":"https://api.github.com/users/Tarang","html_url":"https://github.com/Tarang","followers_url":"https://api.github.com/users/Tarang/followers","following_url":"https://api.github.com/users/Tarang/following{/other_user}","gists_url":"https://api.github.com/users/Tarang/gists{/gist_id}","starred_url":"https://api.github.com/users/Tarang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tarang/subscriptions","organizations_url":"https://api.github.com/users/Tarang/orgs","repos_url":"https://api.github.com/users/Tarang/repos","events_url":"https://api.github.com/users/Tarang/events{/privacy}","received_events_url":"https://api.github.com/users/Tarang/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/meteor/meteor/labels/Project:Mobile","name":"Project:Mobile","color":"5319e7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":22,"created_at":"2015-04-05T17:02:08Z","updated_at":"2015-11-03T18:43:22Z","closed_at":"2015-05-22T00:34:57Z","body":"I'm getting errors like `XMLHttpRequest cannot load http://192.168.8.109/. Origin http://meteor.local is not allowed by Access-Control-Allow-Origin.`\r\n\r\nThis is unexpected because the origin rule is set to `*` (wildcard)\r\n\r\nCan be reproduced with a blank project\r\n\r\nI have `mobile.config.js`\r\n```\r\nApp.accessRule(\"*\")\r\n```\r\n\r\nEdit the main js file to:\r\n\r\n```\r\nTemplate.hello.events({\r\n    'click button': function () {\r\n      // increment the counter when button is clicked\r\n      Session.set('counter', Session.get('counter') + 1);\r\n\r\n      HTTP.post(\"http://192.168.8.109\", {\r\n      }, function(err, result) {\r\n        alert(\"POST \" + err);\r\n      })\r\n\r\n      HTTP.get(\"http://192.168.8.109\", {\r\n      }, function(err, result) {\r\n        alert(\"GET \" + err);\r\n      })\r\n    }\r\n  });\r\n```\r\n\r\nTried on both iOS (8.1 iPhone 5) & Android (4.1 Samsung Galaxy S3)."},"comment":{"url":"https://api.github.com/repos/meteor/meteor/issues/comments/153450021","html_url":"https://github.com/meteor/meteor/issues/4132#issuecomment-153450021","issue_url":"https://api.github.com/repos/meteor/meteor/issues/4132","id":153450021,"user":{"login":"Lenin7","id":7504982,"avatar_url":"https://avatars.githubusercontent.com/u/7504982?v=3","gravatar_id":"","url":"https://api.github.com/users/Lenin7","html_url":"https://github.com/Lenin7","followers_url":"https://api.github.com/users/Lenin7/followers","following_url":"https://api.github.com/users/Lenin7/following{/other_user}","gists_url":"https://api.github.com/users/Lenin7/gists{/gist_id}","starred_url":"https://api.github.com/users/Lenin7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lenin7/subscriptions","organizations_url":"https://api.github.com/users/Lenin7/orgs","repos_url":"https://api.github.com/users/Lenin7/repos","events_url":"https://api.github.com/users/Lenin7/events{/privacy}","received_events_url":"https://api.github.com/users/Lenin7/received_events","type":"User","site_admin":false},"created_at":"2015-11-03T18:43:22Z","updated_at":"2015-11-03T18:43:22Z","body":"Anyone found a fix for this yet?"}}