{"action":"created","issue":{"url":"https://api.github.com/repos/xcv58/meteor-collectionapi/issues/6","labels_url":"https://api.github.com/repos/xcv58/meteor-collectionapi/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/xcv58/meteor-collectionapi/issues/6/comments","events_url":"https://api.github.com/repos/xcv58/meteor-collectionapi/issues/6/events","html_url":"https://github.com/xcv58/meteor-collectionapi/issues/6","id":63249832,"number":6,"title":"Cross domain","user":{"login":"dagatsoin","id":3670794,"avatar_url":"https://avatars.githubusercontent.com/u/3670794?v=3","gravatar_id":"","url":"https://api.github.com/users/dagatsoin","html_url":"https://github.com/dagatsoin","followers_url":"https://api.github.com/users/dagatsoin/followers","following_url":"https://api.github.com/users/dagatsoin/following{/other_user}","gists_url":"https://api.github.com/users/dagatsoin/gists{/gist_id}","starred_url":"https://api.github.com/users/dagatsoin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dagatsoin/subscriptions","organizations_url":"https://api.github.com/users/dagatsoin/orgs","repos_url":"https://api.github.com/users/dagatsoin/repos","events_url":"https://api.github.com/users/dagatsoin/events{/privacy}","received_events_url":"https://api.github.com/users/dagatsoin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-20T15:31:47Z","updated_at":"2015-03-21T02:15:12Z","closed_at":null,"body":"Hello,\r\n\r\nhow could I implement the [CORS](http://enable-cors.org/server.html) functionality on the server side ?\r\n\r\nI try [this](http://stackoverflow.com/questions/15959501/how-to-add-cors-headers-to-a-meteor-app) but I have no idea of what I am doing... and the page is blank when I restart the app.\r\n\r\nIt seams you access self._response.setHeader() inside your main file. Is there a non hacky way to include `Access-Control-Allow-Origin: *` ?"},"comment":{"url":"https://api.github.com/repos/xcv58/meteor-collectionapi/issues/comments/84219037","html_url":"https://github.com/xcv58/meteor-collectionapi/issues/6#issuecomment-84219037","issue_url":"https://api.github.com/repos/xcv58/meteor-collectionapi/issues/6","id":84219037,"user":{"login":"xcv58","id":503123,"avatar_url":"https://avatars.githubusercontent.com/u/503123?v=3","gravatar_id":"","url":"https://api.github.com/users/xcv58","html_url":"https://github.com/xcv58","followers_url":"https://api.github.com/users/xcv58/followers","following_url":"https://api.github.com/users/xcv58/following{/other_user}","gists_url":"https://api.github.com/users/xcv58/gists{/gist_id}","starred_url":"https://api.github.com/users/xcv58/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xcv58/subscriptions","organizations_url":"https://api.github.com/users/xcv58/orgs","repos_url":"https://api.github.com/users/xcv58/repos","events_url":"https://api.github.com/users/xcv58/events{/privacy}","received_events_url":"https://api.github.com/users/xcv58/received_events","type":"User","site_admin":false},"created_at":"2015-03-21T02:15:11Z","updated_at":"2015-03-21T02:15:11Z","body":"Now the v0.2.3 support CORS, you just need set it to true\r\n```javascript\r\n        allowCORS: true,                  // Allow CORS (Cross-Origin Resource Sharing)\r\n```\r\n\r\nPlease tell me whether it works or not. Thank you very much!"}}