{"action":"created","issue":{"url":"https://api.github.com/repos/OfficeDev/PnP-JS-Core/issues/135","repository_url":"https://api.github.com/repos/OfficeDev/PnP-JS-Core","labels_url":"https://api.github.com/repos/OfficeDev/PnP-JS-Core/issues/135/labels{/name}","comments_url":"https://api.github.com/repos/OfficeDev/PnP-JS-Core/issues/135/comments","events_url":"https://api.github.com/repos/OfficeDev/PnP-JS-Core/issues/135/events","html_url":"https://github.com/OfficeDev/PnP-JS-Core/pull/135","id":161124969,"number":135,"title":"CORS support","user":{"login":"robi26","id":9413361,"avatar_url":"https://avatars.githubusercontent.com/u/9413361?v=3","gravatar_id":"","url":"https://api.github.com/users/robi26","html_url":"https://github.com/robi26","followers_url":"https://api.github.com/users/robi26/followers","following_url":"https://api.github.com/users/robi26/following{/other_user}","gists_url":"https://api.github.com/users/robi26/gists{/gist_id}","starred_url":"https://api.github.com/users/robi26/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robi26/subscriptions","organizations_url":"https://api.github.com/users/robi26/orgs","repos_url":"https://api.github.com/users/robi26/repos","events_url":"https://api.github.com/users/robi26/events{/privacy}","received_events_url":"https://api.github.com/users/robi26/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/OfficeDev/PnP-JS-Core/labels/cla-already-signed","name":"cla-already-signed","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-06-20T06:26:37Z","updated_at":"2016-06-21T16:37:03Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/OfficeDev/PnP-JS-Core/pulls/135","html_url":"https://github.com/OfficeDev/PnP-JS-Core/pull/135","diff_url":"https://github.com/OfficeDev/PnP-JS-Core/pull/135.diff","patch_url":"https://github.com/OfficeDev/PnP-JS-Core/pull/135.patch"},"body":"| Q               | A\r\n| --------------- | ---\r\n| Bug fix?        | no\r\n| New feature?    | yes\r\n| New sample?      | no\r\n\r\n#### What's in this Pull Request?\r\n\r\nSupport for CORS calls using the SP.RequestExecutor object, see Yammer discussion (https://www.yammer.com/itpronetwork/#/Threads/show?threadId=718329691).\r\n\r\nUse pnp.setup( {  useSPRequestExecutor: true } ) to enable CORS, then use pnp.sp.crossDomainWeb to make the calls.\r\n\r\nInclude the /_layouts/15/SP.RequestExecutor.js in your page to have the SP.RequestExecutor available.\r\n"},"comment":{"url":"https://api.github.com/repos/OfficeDev/PnP-JS-Core/issues/comments/227497476","html_url":"https://github.com/OfficeDev/PnP-JS-Core/pull/135#issuecomment-227497476","issue_url":"https://api.github.com/repos/OfficeDev/PnP-JS-Core/issues/135","id":227497476,"user":{"login":"patrick-rodgers","id":13154702,"avatar_url":"https://avatars.githubusercontent.com/u/13154702?v=3","gravatar_id":"","url":"https://api.github.com/users/patrick-rodgers","html_url":"https://github.com/patrick-rodgers","followers_url":"https://api.github.com/users/patrick-rodgers/followers","following_url":"https://api.github.com/users/patrick-rodgers/following{/other_user}","gists_url":"https://api.github.com/users/patrick-rodgers/gists{/gist_id}","starred_url":"https://api.github.com/users/patrick-rodgers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patrick-rodgers/subscriptions","organizations_url":"https://api.github.com/users/patrick-rodgers/orgs","repos_url":"https://api.github.com/users/patrick-rodgers/repos","events_url":"https://api.github.com/users/patrick-rodgers/events{/privacy}","received_events_url":"https://api.github.com/users/patrick-rodgers/received_events","type":"User","site_admin":false},"created_at":"2016-06-21T16:37:03Z","updated_at":"2016-06-21T16:37:03Z","body":"Not necessarily - you could check for it in the page using the Util.getUrlParamByName method, but there is no guarantee it will be there. You could try loading it from the app web url as it should also have the /15 folder. See what you can come up with - but nice work so far on this."}}
{"actor":{"display_login":"patrick-rodgers"}}