{"action":"created","issue":{"url":"https://api.github.com/repos/mrdoob/three.js/issues/7568","labels_url":"https://api.github.com/repos/mrdoob/three.js/issues/7568/labels{/name}","comments_url":"https://api.github.com/repos/mrdoob/three.js/issues/7568/comments","events_url":"https://api.github.com/repos/mrdoob/three.js/issues/7568/events","html_url":"https://github.com/mrdoob/three.js/issues/7568","id":116299378,"number":7568,"title":"XHRLoader line 70 make no sense","user":{"login":"makc","id":242577,"avatar_url":"https://avatars.githubusercontent.com/u/242577?v=3","gravatar_id":"","url":"https://api.github.com/users/makc","html_url":"https://github.com/makc","followers_url":"https://api.github.com/users/makc/followers","following_url":"https://api.github.com/users/makc/following{/other_user}","gists_url":"https://api.github.com/users/makc/gists{/gist_id}","starred_url":"https://api.github.com/users/makc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/makc/subscriptions","organizations_url":"https://api.github.com/users/makc/orgs","repos_url":"https://api.github.com/users/makc/repos","events_url":"https://api.github.com/users/makc/events{/privacy}","received_events_url":"https://api.github.com/users/makc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-11T09:50:11Z","updated_at":"2015-11-12T17:46:17Z","closed_at":null,"body":"https://github.com/mrdoob/three.js/blob/master/src/loaders/XHRLoader.js#L70-L71\r\n\r\n```javascript\r\nif ( this.crossOrigin !== undefined ) request.crossOrigin = this.crossOrigin;\r\nif ( this.responseType !== undefined ) request.responseType = this.responseType;\r\n```\r\n\r\n1st, line 70 does not seem to make any sense since neither [FireFox](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest), nor [IE](https://msdn.microsoft.com/en-us/library/ms535874%28v=vs.85%29.aspx#properties) or [Safari](https://developer.apple.com/library/prerelease/mac/documentation/AppleApplications/Conceptual/SafariJSProgTopics/XHR.html) does not even mention crossOrigin property. From Safari doc and from jsfiddle test I did it seems XMLHttpRequest sets origin header for different domains automatically (and it makes sense, or else the result would have to be 100% error).\r\n\r\n~~2nd, line 71 seems to write into the property that is set by the browser after response is received.~~"},"comment":{"url":"https://api.github.com/repos/mrdoob/three.js/issues/comments/156181385","html_url":"https://github.com/mrdoob/three.js/issues/7568#issuecomment-156181385","issue_url":"https://api.github.com/repos/mrdoob/three.js/issues/7568","id":156181385,"user":{"login":"mrdoob","id":97088,"avatar_url":"https://avatars.githubusercontent.com/u/97088?v=3","gravatar_id":"","url":"https://api.github.com/users/mrdoob","html_url":"https://github.com/mrdoob","followers_url":"https://api.github.com/users/mrdoob/followers","following_url":"https://api.github.com/users/mrdoob/following{/other_user}","gists_url":"https://api.github.com/users/mrdoob/gists{/gist_id}","starred_url":"https://api.github.com/users/mrdoob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrdoob/subscriptions","organizations_url":"https://api.github.com/users/mrdoob/orgs","repos_url":"https://api.github.com/users/mrdoob/repos","events_url":"https://api.github.com/users/mrdoob/events{/privacy}","received_events_url":"https://api.github.com/users/mrdoob/received_events","type":"User","site_admin":false},"created_at":"2015-11-12T17:46:17Z","updated_at":"2015-11-12T17:46:17Z","body":"Indeed... crossOrigin must have been me bling copy/pasting when doing XHRLoader."}}