- From: Tim Berners-Lee <notifications@github.com>
- Date: Tue, 02 Aug 2016 09:49:11 -0700
- To: whatwg/fetch <fetch@noreply.github.com>
Received on Tuesday, 2 August 2016 16:49:43 UTC
@mnot in " a status code to be generated by fetch if there's a cross-origin access failure? If so, 403 is definitely the right one." Are you suggesting that the fetch function locally should fake an HTTP status code? That sounds to be like a bad idea -- the caller really needs to understand what went on. Better surely to make a new series of client-side error code 600 series maybe and allocate them for different kinds of CORS failure. Of course currently often the status code is 0 for cors problems, and the calling code has to guess what happened -- sometimes ending up wasting time implementing different alternative fall backs in turn. --- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/whatwg/fetch/issues/172#issuecomment-236966686
Received on Tuesday, 2 August 2016 16:49:43 UTC