Stevenroyals Posted April 3, 2018 Share Posted April 3, 2018 I get a blank browser screen when I open the hello world project. I'm using chrome and in the console it says "Uncaught DOMException: Failed to execute 'texImage2D' on " and underneath it it says "webgl renderingcontext: the image element contains cross origin data and may not be loaded" I'm not sure if I;ve got everything installed correctly. wampserver is running. The project is installed on C: wampserver/www. In the www folder is the project called index.html and the phaser js file and a few other files etc. Thanks Steve Link to comment Share on other sites More sharing options...
Stevenroyals Posted April 3, 2018 Author Share Posted April 3, 2018 I managed to get it working by putting the index file inside a folder. It won't work by just clicking on the index.html but you have to type the address into the already open browser like this localhost/projects. Is this the typical way to access it? I tried getting to it by typing localhost which brings up the wampserver dashboard. It does show the projects folder but when you click on it it does not open the index.html file. Link to comment Share on other sites More sharing options...
rich Posted April 4, 2018 Share Posted April 4, 2018 Yes, this is how you serve a local web site. If the file doesn't come from wamp (or similar), i.e. if you just double-click the html or drag it into chrome, then it won't have permissions to load any of the assets. Link to comment Share on other sites More sharing options...
Recommended Posts