{"action":"created","issue":{"url":"https://api.github.com/repos/SitePen/dstore/issues/99","labels_url":"https://api.github.com/repos/SitePen/dstore/issues/99/labels{/name}","comments_url":"https://api.github.com/repos/SitePen/dstore/issues/99/comments","events_url":"https://api.github.com/repos/SitePen/dstore/issues/99/events","html_url":"https://github.com/SitePen/dstore/issues/99","id":57785920,"number":99,"title":"There seems to be no supported way to use Request withCredentials","user":{"login":"jandppw","id":6057701,"avatar_url":"https://avatars.githubusercontent.com/u/6057701?v=3","gravatar_id":"","url":"https://api.github.com/users/jandppw","html_url":"https://github.com/jandppw","followers_url":"https://api.github.com/users/jandppw/followers","following_url":"https://api.github.com/users/jandppw/following{/other_user}","gists_url":"https://api.github.com/users/jandppw/gists{/gist_id}","starred_url":"https://api.github.com/users/jandppw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jandppw/subscriptions","organizations_url":"https://api.github.com/users/jandppw/orgs","repos_url":"https://api.github.com/users/jandppw/repos","events_url":"https://api.github.com/users/jandppw/events{/privacy}","received_events_url":"https://api.github.com/users/jandppw/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/SitePen/dstore/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-16T10:13:31Z","updated_at":"2015-08-11T10:49:18Z","closed_at":null,"body":"dojo/request/xhr.__BaseOptions supports the withCredentials option, necessary for CORS behaviour.\r\nThere seems to be no supported way in dstore/Request to set this option, now any other option, like password, user, preventCache, sync, timeout, etc., apart from the headers and the query parameters.\r\n\r\n\t\t\tvar response = request(requestUrl, {\r\n\t\t\t\tmethod: 'GET',\r\n\t\t\t\theaders: headers\r\n\t\t\t});\r\n\r\nThis makes Request and the specialisations of it unusable at least in CORS situations, unless I'm missing something."},"comment":{"url":"https://api.github.com/repos/SitePen/dstore/issues/comments/129833938","html_url":"https://github.com/SitePen/dstore/issues/99#issuecomment-129833938","issue_url":"https://api.github.com/repos/SitePen/dstore/issues/99","id":129833938,"user":{"login":"kitsonk","id":1282577,"avatar_url":"https://avatars.githubusercontent.com/u/1282577?v=3","gravatar_id":"","url":"https://api.github.com/users/kitsonk","html_url":"https://github.com/kitsonk","followers_url":"https://api.github.com/users/kitsonk/followers","following_url":"https://api.github.com/users/kitsonk/following{/other_user}","gists_url":"https://api.github.com/users/kitsonk/gists{/gist_id}","starred_url":"https://api.github.com/users/kitsonk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kitsonk/subscriptions","organizations_url":"https://api.github.com/users/kitsonk/orgs","repos_url":"https://api.github.com/users/kitsonk/repos","events_url":"https://api.github.com/users/kitsonk/events{/privacy}","received_events_url":"https://api.github.com/users/kitsonk/received_events","type":"User","site_admin":false},"created_at":"2015-08-11T10:49:18Z","updated_at":"2015-08-11T10:49:18Z","body":"Yes, I agree that addressing #79 would provide a mechanism for this.  As @neonstalwart says, a request provider would be able to provide this mechanism for you, but I can see the benefit of making that more clean."}}