Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Computers are not intelligent. They only think they are.


devel / comp.lang.javascript / Re: Cross-Origin Request Blocked

SubjectAuthor
* Cross-Origin Request Blockedemf
+* Re: Cross-Origin Request BlockedArno Welzel
|`* Re: Cross-Origin Request BlockedThe Natural Philosopher
| `* Re: Cross-Origin Request BlockedArno Welzel
|  `- Re: Cross-Origin Request BlockedThe Natural Philosopher
`- Re: Cross-Origin Request BlockedEzimene nimi Teine nimi

1
Cross-Origin Request Blocked

<tb78ob$1p5e$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17864&group=comp.lang.javascript#17864

  copy link   Newsgroups: comp.lang.javascript
Path: i2pn2.org!i2pn.org!aioe.org!KXYjTmRyLRfsXyR8LLXMWA.user.46.165.242.91.POSTED!not-for-mail
From: emfril@gmail.com (emf)
Newsgroups: comp.lang.javascript
Subject: Cross-Origin Request Blocked
Date: Tue, 19 Jul 2022 17:46:50 -0400
Organization: Aioe.org NNTP Server
Message-ID: <tb78ob$1p5e$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="58542"; posting-host="KXYjTmRyLRfsXyR8LLXMWA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.11.0
Content-Language: en-US
X-Notice: Filtered by postfilter v. 0.9.2
 by: emf - Tue, 19 Jul 2022 21:46 UTC

Hi.

I have on my computer a program that reads a local text file. It
used to work OK but now it doesn't and the Web Developer Tools
of Firefox says:

Cross-Origin Request Blocked: The Same Origin Policy disallows
reading the remote resource at file:///C:/...

Is there any work-around?

Thanks,

Eustace
--
It ain't THAT, babe! — A radical reinterpretation
https://emf.neocities.org/bd/itaintmebabe.html

Re: Cross-Origin Request Blocked

<jjotcmFmpdlU1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17865&group=comp.lang.javascript#17865

  copy link   Newsgroups: comp.lang.javascript
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: usenet@arnowelzel.de (Arno Welzel)
Newsgroups: comp.lang.javascript
Subject: Re: Cross-Origin Request Blocked
Date: Wed, 20 Jul 2022 01:34:48 +0200
Lines: 23
Message-ID: <jjotcmFmpdlU1@mid.individual.net>
References: <tb78ob$1p5e$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Trace: individual.net MPdn1Rccz3pdqhVqUXCjWwSsRFlkkqjCrYjmmwcOp7IpUdWk31
Cancel-Lock: sha1:JNMLOvTY/jLyvlEMSUfI6d+d6t0=
Content-Language: de-DE
In-Reply-To: <tb78ob$1p5e$1@gioia.aioe.org>
 by: Arno Welzel - Tue, 19 Jul 2022 23:34 UTC

emf:

> Hi.
>
> I have on my computer a program that reads a local text file. It
> used to work OK but now it doesn't and the Web Developer Tools
> of Firefox says:
>
> Cross-Origin Request Blocked: The Same Origin Policy disallows
> reading the remote resource at file:///C:/...
>
> Is there any work-around?

No.

Accessing local files is restricted for security reasons.

Also see:
<https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors/CORSRequestNotHttp>

--
Arno Welzel
https://arnowelzel.de

Re: Cross-Origin Request Blocked

<tb8oac$1j4ed$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17866&group=comp.lang.javascript#17866

  copy link   Newsgroups: comp.lang.javascript
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: tnp@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.lang.javascript
Subject: Re: Cross-Origin Request Blocked
Date: Wed, 20 Jul 2022 12:18:35 +0100
Organization: A little, after lunch
Lines: 38
Message-ID: <tb8oac$1j4ed$1@dont-email.me>
References: <tb78ob$1p5e$1@gioia.aioe.org> <jjotcmFmpdlU1@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 20 Jul 2022 11:18:36 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="41d5fbc2a0edf0eef929a5b2ecaedfd3";
logging-data="1675725"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+WPaekfvH+LxNoI9LyFgdgdpstK+mSWYA="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.9.1
Cancel-Lock: sha1:HL+S/WgLpQFq9Rp7nc4sb7iOHDE=
Content-Language: en-GB
In-Reply-To: <jjotcmFmpdlU1@mid.individual.net>
 by: The Natural Philosop - Wed, 20 Jul 2022 11:18 UTC

On 20/07/2022 00:34, Arno Welzel wrote:
> emf:
>
>> Hi.
>>
>> I have on my computer a program that reads a local text file. It
>> used to work OK but now it doesn't and the Web Developer Tools
>> of Firefox says:
>>
>> Cross-Origin Request Blocked: The Same Origin Policy disallows
>> reading the remote resource at file:///C:/...
>>
>> Is there any work-around?
>
> No.
>
I wouldn't be as categorically sure as all that.
I can think of at least one way.

Construct a minimal web server on the local machine and access it via ajax.

Or find some mechanism where JavaScript or the browser interacts with
the host, and subvert it...

> Accessing local files is restricted for security reasons.
>
> Also see:
> <https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors/CORSRequestNotHttp>
>

--
Ideas are more powerful than guns. We would not let our enemies have
guns, why should we let them have ideas?

Josef Stalin

Re: Cross-Origin Request Blocked

<jjsk02Fa8nrU1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17867&group=comp.lang.javascript#17867

  copy link   Newsgroups: comp.lang.javascript
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: usenet@arnowelzel.de (Arno Welzel)
Newsgroups: comp.lang.javascript
Subject: Re: Cross-Origin Request Blocked
Date: Thu, 21 Jul 2022 11:18:58 +0200
Lines: 36
Message-ID: <jjsk02Fa8nrU1@mid.individual.net>
References: <tb78ob$1p5e$1@gioia.aioe.org> <jjotcmFmpdlU1@mid.individual.net>
<tb8oac$1j4ed$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Trace: individual.net dtpp2B0b0FB8YLfpeKhIhwGQEIQy0g8WijLYjiTIod0hhtFLC9
Cancel-Lock: sha1:rhAj+IafIYJ2YSATCgNEFxEs1lc=
Content-Language: de-DE
In-Reply-To: <tb8oac$1j4ed$1@dont-email.me>
 by: Arno Welzel - Thu, 21 Jul 2022 09:18 UTC

The Natural Philosopher:

> On 20/07/2022 00:34, Arno Welzel wrote:
>> emf:
>>
>>> Hi.
>>>
>>> I have on my computer a program that reads a local text file. It
>>> used to work OK but now it doesn't and the Web Developer Tools
>>> of Firefox says:
>>>
>>> Cross-Origin Request Blocked: The Same Origin Policy disallows
>>> reading the remote resource at file:///C:/...
>>>
>>> Is there any work-around?
>>
>> No.
>>
> I wouldn't be as categorically sure as all that.
> I can think of at least one way.
>
> Construct a minimal web server on the local machine and access it via ajax.

For this you need Node.js:

<https://nodejs.org/api/http.html#http_http_createserver_options_requestlistener>

Or setup Apache2 or Nginx.

I'm not sure if I'd call this a "workaround". To me this seems to be a
completely different approach - don't access locally but using a webserver.

--
Arno Welzel
https://arnowelzel.de

Re: Cross-Origin Request Blocked

<tbb9hl$2a46u$3@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17868&group=comp.lang.javascript#17868

  copy link   Newsgroups: comp.lang.javascript
Path: i2pn2.org!rocksolid2!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: tnp@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.lang.javascript
Subject: Re: Cross-Origin Request Blocked
Date: Thu, 21 Jul 2022 11:24:52 +0100
Organization: A little, after lunch
Lines: 39
Message-ID: <tbb9hl$2a46u$3@dont-email.me>
References: <tb78ob$1p5e$1@gioia.aioe.org> <jjotcmFmpdlU1@mid.individual.net>
<tb8oac$1j4ed$1@dont-email.me> <jjsk02Fa8nrU1@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 21 Jul 2022 10:24:53 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="df9dd58f17506ba78159d8d9fe19da01";
logging-data="2429150"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+XIhi5z0IlzSNHNgfT+Hahs/STkUVOq4M="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.11.0
Cancel-Lock: sha1:n6KTFvIarUwwes/BRKvyzue4k4s=
In-Reply-To: <jjsk02Fa8nrU1@mid.individual.net>
Content-Language: en-GB
 by: The Natural Philosop - Thu, 21 Jul 2022 10:24 UTC

On 21/07/2022 10:18, Arno Welzel wrote:
> The Natural Philosopher:
>
>> On 20/07/2022 00:34, Arno Welzel wrote:
>>> emf:
>>>
>>>> Hi.
>>>>
>>>> I have on my computer a program that reads a local text file. It
>>>> used to work OK but now it doesn't and the Web Developer Tools
>>>> of Firefox says:
>>>>
>>>> Cross-Origin Request Blocked: The Same Origin Policy disallows
>>>> reading the remote resource at file:///C:/...
>>>>
>>>> Is there any work-around?
>>>
>>> No.
>>>
>> I wouldn't be as categorically sure as all that.
>> I can think of at least one way.
>>
>> Construct a minimal web server on the local machine and access it via ajax.
>
> For this you need Node.js:
>
> <https://nodejs.org/api/http.html#http_http_createserver_options_requestlistener>
>
> Or setup Apache2 or Nginx.
>
> I'm not sure if I'd call this a "workaround". To me this seems to be a
> completely different approach - don't access locally but using a webserver.
>
>
Well yes, semantics is one thing, bits in silicon is another.

--
A lie can travel halfway around the world while the truth is putting on
its shoes.

Re: Cross-Origin Request Blocked

<0d070abe-0a22-4041-8c17-1f3294ecfa4bn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=18063&group=comp.lang.javascript#18063

  copy link   Newsgroups: comp.lang.javascript
X-Received: by 2002:ad4:5a0e:0:b0:571:e9d3:24a9 with SMTP id ei14-20020ad45a0e000000b00571e9d324a9mr2537925qvb.10.1678102036604;
Mon, 06 Mar 2023 03:27:16 -0800 (PST)
X-Received: by 2002:a05:6870:c7ab:b0:16e:3be:83ac with SMTP id
dy43-20020a056870c7ab00b0016e03be83acmr3545251oab.3.1678102036409; Mon, 06
Mar 2023 03:27:16 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.javascript
Date: Mon, 6 Mar 2023 03:27:16 -0800 (PST)
In-Reply-To: <tb78ob$1p5e$1@gioia.aioe.org>
Injection-Info: google-groups.googlegroups.com; posting-host=82.131.38.37; posting-account=ogslnwoAAACd9vU9PADzlWBA81fSuNpL
NNTP-Posting-Host: 82.131.38.37
References: <tb78ob$1p5e$1@gioia.aioe.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <0d070abe-0a22-4041-8c17-1f3294ecfa4bn@googlegroups.com>
Subject: Re: Cross-Origin Request Blocked
From: techfan55555@hotmail.com (Ezimene nimi Teine nimi)
Injection-Date: Mon, 06 Mar 2023 11:27:16 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1834
 by: Ezimene nimi Teine n - Mon, 6 Mar 2023 11:27 UTC

Get to: http://aaaaaaaaaaaaaaaar.medianewsonline.com/firstpage.php

And invite all Your friends too !!!!!!!!!!!

On Tuesday, July 19, 2022 at 11:47:00 PM UTC+2, emf wrote:
> Hi.
>
> I have on my computer a program that reads a local text file. It
> used to work OK but now it doesn't and the Web Developer Tools
> of Firefox says:
>
> Cross-Origin Request Blocked: The Same Origin Policy disallows
> reading the remote resource at file:///C:/...
>
> Is there any work-around?
>
> Thanks,
>
> Eustace
> --
> It ain't THAT, babe! — A radical reinterpretation
> https://emf.neocities.org/bd/itaintmebabe.html

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor