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...
Ideas are more powerful than guns. We would not let our enemies have
guns, why should we let them have ideas?
Josef Stalin