LoadFromJSON

After endless trying to get the TMS-Webcore running at Windows10, running via Parallels at an OSX-device, it works good. But now I have the following problem. I want to laod a (very simple) json-file in the TWebStringGrid. According to the documentation, I need to do us LoadFromJSON(const AURL: string; ADataNode: string) with a url and a nodename where to start processing the json string. I did with LoadFromJSON('https://brs85.nl/files/drenten.json','honden'); but it doesn't work. Is there a working example available or can you tell me what I did wrong?

Sincerely,

Arjan

When I test this from here, I get an error:

Failed to load https://brs85.nl/files/drenten.json: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8000' is therefore not allowed access.

So, this means that CORS needs to be enabled on the server hosting this json file or alternatively, you need to deploy this app on the server brs85.nl and run from there.
Thnx, this works by uploading the app to the server.
Now I have to figure out how to enable this CORS on my "python -m http.server [<portNo>]"

Arjan

This should help:

https://stackoverflow.com/questions/50065875/how-to-enable-cors-in-python