Cant load external JSON data on html5

Hello,
I am loading some JSON data from a public webpage with URLLoader.load(). it works fine in flash but not with html5.
I get this error message in the chrome console :
No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://localhost:2000’ is therefore not allowed access.

thanks

This is a limitation of security in the browser, the server needs an “Access-Control-Allow-Origin” header to allow your URL:

There is a way to disable web security during development in Chrome and Opera

There may be ways to do this in other browsers, too

1 Like