{"action":"created","issue":{"url":"https://api.github.com/repos/UniversalViewer/universalviewer/issues/62","labels_url":"https://api.github.com/repos/UniversalViewer/universalviewer/issues/62/labels{/name}","comments_url":"https://api.github.com/repos/UniversalViewer/universalviewer/issues/62/comments","events_url":"https://api.github.com/repos/UniversalViewer/universalviewer/issues/62/events","html_url":"https://github.com/UniversalViewer/universalviewer/pull/62","id":86255614,"number":62,"title":"More granular control over CORS/JSONP behavior.","user":{"login":"demiankatz","id":309069,"avatar_url":"https://avatars.githubusercontent.com/u/309069?v=3","gravatar_id":"","url":"https://api.github.com/users/demiankatz","html_url":"https://github.com/demiankatz","followers_url":"https://api.github.com/users/demiankatz/followers","following_url":"https://api.github.com/users/demiankatz/following{/other_user}","gists_url":"https://api.github.com/users/demiankatz/gists{/gist_id}","starred_url":"https://api.github.com/users/demiankatz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/demiankatz/subscriptions","organizations_url":"https://api.github.com/users/demiankatz/orgs","repos_url":"https://api.github.com/users/demiankatz/repos","events_url":"https://api.github.com/users/demiankatz/events{/privacy}","received_events_url":"https://api.github.com/users/demiankatz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-08T17:01:05Z","updated_at":"2015-06-08T17:01:51Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/UniversalViewer/universalviewer/pulls/62","html_url":"https://github.com/UniversalViewer/universalviewer/pull/62","diff_url":"https://github.com/UniversalViewer/universalviewer/pull/62.diff","patch_url":"https://github.com/UniversalViewer/universalviewer/pull/62.patch"},"body":"As discussed in #54, this allows the choice between \"force CORS,\" \"force JSONP\" and \"autodetect based on capabilities.\"\r\n\r\nNote that there seems to be a problem with the way utils.getBool() was being used to initialize the jsonp value in the bootstrapper -- even though the property is typed as boolean, it was actually getting assigned a string of \"true\" or \"false\". This inconsistency caused problems down the line since all values would evaluate to boolean true. I tried to fix getBool to convert strings like \"true\" and \"false\" to equivalent boolean values, but this caused the entire application to break -- I think there may be some code making undesirable assumptions somewhere. Rather than delve deeper into that problem, I opted to simply work around getBool entirely for the purposes of this PR. Somebody with a deeper knowledge of the code should probably look into this, though!"},"comment":{"url":"https://api.github.com/repos/UniversalViewer/universalviewer/issues/comments/110073692","html_url":"https://github.com/UniversalViewer/universalviewer/pull/62#issuecomment-110073692","issue_url":"https://api.github.com/repos/UniversalViewer/universalviewer/issues/62","id":110073692,"user":{"login":"demiankatz","id":309069,"avatar_url":"https://avatars.githubusercontent.com/u/309069?v=3","gravatar_id":"","url":"https://api.github.com/users/demiankatz","html_url":"https://github.com/demiankatz","followers_url":"https://api.github.com/users/demiankatz/followers","following_url":"https://api.github.com/users/demiankatz/following{/other_user}","gists_url":"https://api.github.com/users/demiankatz/gists{/gist_id}","starred_url":"https://api.github.com/users/demiankatz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/demiankatz/subscriptions","organizations_url":"https://api.github.com/users/demiankatz/orgs","repos_url":"https://api.github.com/users/demiankatz/repos","events_url":"https://api.github.com/users/demiankatz/events{/privacy}","received_events_url":"https://api.github.com/users/demiankatz/received_events","type":"User","site_admin":false},"created_at":"2015-06-08T17:01:51Z","updated_at":"2015-06-08T17:01:51Z","body":"See also https://github.com/UniversalViewer/examples/pull/2 for the front-end UI to test this functionality."}}