Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

If you think the system is working, ask someone who's waiting for a prompt.


devel / comp.lang.javascript / 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

1
Cross-Origin Request Blocked

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

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=5351&group=comp.lang.javascript#5351

  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://news.novabbs.org/devel/article-flat.php?id=5352&group=comp.lang.javascript#5352

  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://news.novabbs.org/devel/article-flat.php?id=5353&group=comp.lang.javascript#5353

  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://news.novabbs.org/devel/article-flat.php?id=5354&group=comp.lang.javascript#5354

  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://news.novabbs.org/devel/article-flat.php?id=5355&group=comp.lang.javascript#5355

  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.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor