Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: 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: References: 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: Xref: csiph.com comp.lang.javascript:41001 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: -- Arno Welzel https://arnowelzel.de