{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/fxa-relier-client/issues/61","labels_url":"https://api.github.com/repos/mozilla/fxa-relier-client/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/fxa-relier-client/issues/61/comments","events_url":"https://api.github.com/repos/mozilla/fxa-relier-client/issues/61/events","html_url":"https://github.com/mozilla/fxa-relier-client/issues/61","id":75254224,"number":61,"title":"CORS error from fxaRelierClient.token.tradeCode()","user":{"login":"kumar303","id":55398,"avatar_url":"https://avatars.githubusercontent.com/u/55398?v=3","gravatar_id":"","url":"https://api.github.com/users/kumar303","html_url":"https://github.com/kumar303","followers_url":"https://api.github.com/users/kumar303/followers","following_url":"https://api.github.com/users/kumar303/following{/other_user}","gists_url":"https://api.github.com/users/kumar303/gists{/gist_id}","starred_url":"https://api.github.com/users/kumar303/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kumar303/subscriptions","organizations_url":"https://api.github.com/users/kumar303/orgs","repos_url":"https://api.github.com/users/kumar303/repos","events_url":"https://api.github.com/users/kumar303/events{/privacy}","received_events_url":"https://api.github.com/users/kumar303/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-11T15:12:10Z","updated_at":"2015-05-11T15:16:51Z","closed_at":null,"body":"When running this from release 590b2ab4f4 of the JS lib, ``fxaRelierClient.token.tradeCode(returnedCode)``, the call failed because of a CORS error. In Firefox it says that the ``x-requested-with`` header was not sent which causes the failure. Should be an easy fix. I tried making the same post to https://oauth-stable.dev.lcip.org/v1/token with jQuery (which I think sets that header automatically) and it worked."},"comment":{"url":"https://api.github.com/repos/mozilla/fxa-relier-client/issues/comments/100940433","html_url":"https://github.com/mozilla/fxa-relier-client/issues/61#issuecomment-100940433","issue_url":"https://api.github.com/repos/mozilla/fxa-relier-client/issues/61","id":100940433,"user":{"login":"kumar303","id":55398,"avatar_url":"https://avatars.githubusercontent.com/u/55398?v=3","gravatar_id":"","url":"https://api.github.com/users/kumar303","html_url":"https://github.com/kumar303","followers_url":"https://api.github.com/users/kumar303/followers","following_url":"https://api.github.com/users/kumar303/following{/other_user}","gists_url":"https://api.github.com/users/kumar303/gists{/gist_id}","starred_url":"https://api.github.com/users/kumar303/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kumar303/subscriptions","organizations_url":"https://api.github.com/users/kumar303/orgs","repos_url":"https://api.github.com/users/kumar303/repos","events_url":"https://api.github.com/users/kumar303/events{/privacy}","received_events_url":"https://api.github.com/users/kumar303/received_events","type":"User","site_admin":false},"created_at":"2015-05-11T15:16:51Z","updated_at":"2015-05-11T15:16:51Z","body":"No, this is my first time trying it."}}