Load json from desktop

var url = '${resourcesFolderName}/video.json';
var url = 'data/video.json';

if i read a json from the resource folder in hype with the test function, it works. If I export the document to a folder and try from there, I get an error message in the console and it doesn't work.
i have read that this may be related to security restrictions of the browser (safari)?
but then why does it work in hype browser preview mode?
does it generate a server?
thank you for any information.

CORS will not allow it… use JSONP

1 Like