Path: csiph.com!weretis.net!feeder4.news.weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Thomas 'PointedEars' Lahn Newsgroups: comp.lang.javascript Subject: Re: Read binary file Date: Thu, 17 Mar 2016 02:23:38 +0100 Organization: PointedEars Software (PES) Lines: 26 Message-ID: <1688310.c8VhhRJuCh@PointedEars.de> References: Reply-To: Thomas 'PointedEars' Lahn Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8Bit X-Trace: solani.org 1458177819 16217 eJwNwoERwCAIBLCVQHzQcXjA/UdoL4G5esV2+Mb7MXjX6KPMyKyjnZBk2GV3K1Z1wRkpcyzwATCFEbM= (17 Mar 2016 01:23:39 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Thu, 17 Mar 2016 01:23:39 +0000 (UTC) User-Agent: KNode/4.14.2 X-User-ID: eJwNxYENACEIA8CVKlio44gv+4/wJpccPUacnMGYbHbjZOMVSjkmS9h3lXYNc4GibrI2Guuy7bM0j+rI78EPR0cVDw== Cancel-Lock: sha1:beozmUN6AAIK5Sk370kL05Uv3Rw= X-NNTP-Posting-Host: eJwNyMEBwCAIA8CVFEjAcUTN/iO09zw4J08GwYCgZSk93D97ZF944wW91ykOlW1LL8s7tSn0ByKHET4= Xref: csiph.com comp.lang.javascript:30025 Stefan Ram wrote: > Herbert Kleebauer writes: >> How can I avoid this violation or in >>which other way can I read a binary file from a different >>web server into a javascript array. > > The server can responds with »Access-Control-Allow-Origin: *«, > which means that the resource can be accessed by any domain > in a cross-site manner. > > See > > developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS Context is important. AIUI, he wants to access on *his* site B a *foreign* resource A without its author’s knowledge, meaning that the foreign resource does not have this header field set, and the original author cannot be convinced to have it set. If it had it set, he would not have the SOP problem, and would not look for alternatives, in the first place. -- PointedEars FAQ: | SVN: Twitter: @PointedEars2 | ES Matrix: Please do not cc me. / Bitte keine Kopien per E-Mail.