HTML5: access control check ???

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
giansuana
Posts: 16
Joined: Sat Mar 19, 2011 7:11 am

HTML5: access control check ???

Post by giansuana » Fri Apr 21, 2023 10:04 am

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.
Last edited by giansuana on Thu Apr 27, 2023 6:43 am, edited 1 time in total.

giansuana
Posts: 16
Joined: Sat Mar 19, 2011 7:11 am

Re: HTML5: access control check ???

Post by giansuana » Thu Apr 27, 2023 6:40 am

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.

Post Reply