{"action":"created","issue":{"url":"https://api.github.com/repos/snowplow/snowplow-javascript-tracker/issues/168","labels_url":"https://api.github.com/repos/snowplow/snowplow-javascript-tracker/issues/168/labels{/name}","comments_url":"https://api.github.com/repos/snowplow/snowplow-javascript-tracker/issues/168/comments","events_url":"https://api.github.com/repos/snowplow/snowplow-javascript-tracker/issues/168/events","html_url":"https://github.com/snowplow/snowplow-javascript-tracker/issues/168","id":30921307,"number":168,"title":"Add support for sending in data via POST (JSONP / CORS)","user":{"login":"alexanderdean","id":200511,"avatar_url":"https://avatars.githubusercontent.com/u/200511?v=3","gravatar_id":"","url":"https://api.github.com/users/alexanderdean","html_url":"https://github.com/alexanderdean","followers_url":"https://api.github.com/users/alexanderdean/followers","following_url":"https://api.github.com/users/alexanderdean/following{/other_user}","gists_url":"https://api.github.com/users/alexanderdean/gists{/gist_id}","starred_url":"https://api.github.com/users/alexanderdean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexanderdean/subscriptions","organizations_url":"https://api.github.com/users/alexanderdean/orgs","repos_url":"https://api.github.com/users/alexanderdean/repos","events_url":"https://api.github.com/users/alexanderdean/events{/privacy}","received_events_url":"https://api.github.com/users/alexanderdean/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/snowplow/snowplow-javascript-tracker/labels/Enhancement","name":"Enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"fblundun","id":5892914,"avatar_url":"https://avatars.githubusercontent.com/u/5892914?v=3","gravatar_id":"","url":"https://api.github.com/users/fblundun","html_url":"https://github.com/fblundun","followers_url":"https://api.github.com/users/fblundun/followers","following_url":"https://api.github.com/users/fblundun/following{/other_user}","gists_url":"https://api.github.com/users/fblundun/gists{/gist_id}","starred_url":"https://api.github.com/users/fblundun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fblundun/subscriptions","organizations_url":"https://api.github.com/users/fblundun/orgs","repos_url":"https://api.github.com/users/fblundun/repos","events_url":"https://api.github.com/users/fblundun/events{/privacy}","received_events_url":"https://api.github.com/users/fblundun/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/snowplow/snowplow-javascript-tracker/milestones/12","labels_url":"https://api.github.com/repos/snowplow/snowplow-javascript-tracker/milestones/12/labels","id":621352,"number":12,"title":"Version 2.3.0","description":"","creator":{"login":"alexanderdean","id":200511,"avatar_url":"https://avatars.githubusercontent.com/u/200511?v=3","gravatar_id":"","url":"https://api.github.com/users/alexanderdean","html_url":"https://github.com/alexanderdean","followers_url":"https://api.github.com/users/alexanderdean/followers","following_url":"https://api.github.com/users/alexanderdean/following{/other_user}","gists_url":"https://api.github.com/users/alexanderdean/gists{/gist_id}","starred_url":"https://api.github.com/users/alexanderdean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexanderdean/subscriptions","organizations_url":"https://api.github.com/users/alexanderdean/orgs","repos_url":"https://api.github.com/users/alexanderdean/repos","events_url":"https://api.github.com/users/alexanderdean/events{/privacy}","received_events_url":"https://api.github.com/users/alexanderdean/received_events","type":"User","site_admin":false},"open_issues":17,"closed_issues":2,"state":"open","created_at":"2014-04-05T18:40:36Z","updated_at":"2015-02-19T09:19:42Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2014-04-05T18:39:44Z","updated_at":"2015-02-19T11:26:34Z","closed_at":null,"body":"May be useful in some circumstances.\r\n\r\nSee e.g. https://github.com/keenlabs/keen-js/blob/master/src/track.js#L83\r\n\r\nAlex has another project with example code - ping him for details."},"comment":{"url":"https://api.github.com/repos/snowplow/snowplow-javascript-tracker/issues/comments/75036901","html_url":"https://github.com/snowplow/snowplow-javascript-tracker/issues/168#issuecomment-75036901","issue_url":"https://api.github.com/repos/snowplow/snowplow-javascript-tracker/issues/168","id":75036901,"user":{"login":"fblundun","id":5892914,"avatar_url":"https://avatars.githubusercontent.com/u/5892914?v=3","gravatar_id":"","url":"https://api.github.com/users/fblundun","html_url":"https://github.com/fblundun","followers_url":"https://api.github.com/users/fblundun/followers","following_url":"https://api.github.com/users/fblundun/following{/other_user}","gists_url":"https://api.github.com/users/fblundun/gists{/gist_id}","starred_url":"https://api.github.com/users/fblundun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fblundun/subscriptions","organizations_url":"https://api.github.com/users/fblundun/orgs","repos_url":"https://api.github.com/users/fblundun/repos","events_url":"https://api.github.com/users/fblundun/events{/privacy}","received_events_url":"https://api.github.com/users/fblundun/received_events","type":"User","site_admin":false},"created_at":"2015-02-19T11:26:34Z","updated_at":"2015-02-19T11:26:34Z","body":"Regarding cross-browser support:\r\n\r\n* IE 7 and below do not support CORS, so we should fall back to using GET.\r\n* IE 8-9 use XDomainRequest rather than XMLHttpRequest. This is problematic because XDomainRequests only support the Content-Type text/plain, not application/json (http://stackoverflow.com/questions/15113355/how-can-i-set-the-content-type-of-xdomainrequest-object). So we need to either start accepting text/plain or fall back to GET.\r\n\r\nThoughts @alexanderdean ?"}}