{"action":"created","issue":{"url":"https://api.github.com/repos/domenic/cancelable-promise/issues/4","labels_url":"https://api.github.com/repos/domenic/cancelable-promise/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/domenic/cancelable-promise/issues/4/comments","events_url":"https://api.github.com/repos/domenic/cancelable-promise/issues/4/events","html_url":"https://github.com/domenic/cancelable-promise/issues/4","id":92887452,"number":4,"title":"Potential security issues when applied to fetch()","user":{"login":"annevk","id":1544111,"avatar_url":"https://avatars.githubusercontent.com/u/1544111?v=3","gravatar_id":"","url":"https://api.github.com/users/annevk","html_url":"https://github.com/annevk","followers_url":"https://api.github.com/users/annevk/followers","following_url":"https://api.github.com/users/annevk/following{/other_user}","gists_url":"https://api.github.com/users/annevk/gists{/gist_id}","starred_url":"https://api.github.com/users/annevk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/annevk/subscriptions","organizations_url":"https://api.github.com/users/annevk/orgs","repos_url":"https://api.github.com/users/annevk/repos","events_url":"https://api.github.com/users/annevk/events{/privacy}","received_events_url":"https://api.github.com/users/annevk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-07-03T14:35:32Z","updated_at":"2015-07-07T08:21:38Z","closed_at":null,"body":"I think this is what @sleevi was alluding to the other day on Twitter.\r\n\r\nAn attacker that is in control of canceling a \"no-cors\" fetch can influence how many bytes end up in the body. This might result in some crucial bit of the resource not ending up with the user.\r\n\r\nPerhaps we should enforce `Content-Length` or some such and result in a network error in cases like this? Streaming doesn't work with \"no-cors\" (opaque) so that's less of a concern (though that has its own set of concerns)."},"comment":{"url":"https://api.github.com/repos/domenic/cancelable-promise/issues/comments/119115514","html_url":"https://github.com/domenic/cancelable-promise/issues/4#issuecomment-119115514","issue_url":"https://api.github.com/repos/domenic/cancelable-promise/issues/4","id":119115514,"user":{"login":"annevk","id":1544111,"avatar_url":"https://avatars.githubusercontent.com/u/1544111?v=3","gravatar_id":"","url":"https://api.github.com/users/annevk","html_url":"https://github.com/annevk","followers_url":"https://api.github.com/users/annevk/followers","following_url":"https://api.github.com/users/annevk/following{/other_user}","gists_url":"https://api.github.com/users/annevk/gists{/gist_id}","starred_url":"https://api.github.com/users/annevk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/annevk/subscriptions","organizations_url":"https://api.github.com/users/annevk/orgs","repos_url":"https://api.github.com/users/annevk/repos","events_url":"https://api.github.com/users/annevk/events{/privacy}","received_events_url":"https://api.github.com/users/annevk/received_events","type":"User","site_admin":false},"created_at":"2015-07-07T08:21:38Z","updated_at":"2015-07-07T08:21:38Z","body":"I explicitly mentioned \"no-cors\" in OP, which is a feature `XMLHttpRequest` does not have, too."}}