The XB PointStream demos run fine if used from a webpage, but
they fail when run locally (without a web server). The problem is
in psapi.js where around line 400:
AJAX.open("GET", path, true);
the following error is generated:
XMLHttpRequest cannot load
file:///home/xxx/develop/XB-PointStream/clouds/lion_1048K_n.psi.
Cross origin requests are only supported for HTTP.
Even when changing to code into
path='lion_1048K_n.psi'
AJAX.open("GET", path, true);
the code fails with the same error message.
Can the code be adapted such that local files can be used?