When try to click to run the index.html on bin folder i get this Error on HTML5 browser console…
Access to Image at ‘file:///D:/GAMES/Pyrojack/PyrojackBackupHTML5/Pyrojack/bin/html5/release/bin/assets/img/EnemyTwo.png’ from origin ‘null’ has been blocked by CORS policy: Invalid response. Origin ‘null’ is therefore not allowed access.
openfl test html5 to build and run your project (or just
openfl run html5 if you prefer)
Cross-origin policies in browsers limit access to local asset files, so we run an HTTP server in order to test your project. It should open a browser on your system for you, or you can point any browser to
http://localhost:3000 to test it.
In fact, you can use the IP address or network name of your computer, plus the port, from even another device on the same network, such as a mobile phone or tablet, like
If the the default “3000” port is in use for some reason, you can add
--port=3001 or whatever you prefer to the above
http://localhost:2000/ works just fine… thank you…grinning: