Page 1 of 1

HTML5: access control check ???

Posted: Fri Apr 21, 2023 10:04 am
by giansuana
I followed this LiveCode tutorial but ended up with this error in the JavaScript console of Firefox:

Code: Select all

[Error] XMLHttpRequest cannot load file:///Users/grt/Downloads/Escape/test/standalone-9.6.9.html.mem due to access control checks.
	(anonyme Funktion) (index.html:240)
	Globaler Code (index.html:241)
I have no idea what to do...
Best regards.

Re: HTML5: access control check ???

Posted: Thu Apr 27, 2023 6:40 am
by giansuana
I finally found a solution: Problem is that my computer with macOS 13.3.1 does not allow starting web apps directly from a folder on my hard drive; even not by Firefox - in contrary to the tutorial. I have to start a webserver, first.
One simple method to have a webserver for testing purposes is to invoke python 3 and starting a webserver within the folder with the web app:

Code: Select all

python -m http.server 8000
After that I enter the URL http://localhost:8000 into the browser of my choice and see the folder content as clickable file list. Now, the web app is running fine.