CindySchroer Posted September 18, 2016 Share Posted September 18, 2016 Hello, I have an issue with loading a image in phaser. I keep getting the same error, it says "Uncaught SecurityError: Failed to execute 'texImage2D' on 'WebGLRenderingContext': The cross-origin image at file:///Users/CindySchroer/Downloads/Plaatjes/Phaser/assets/images/background.png may not be loaded". I don't understand why it isn't loading (see attatched). Can anyone explain what is happening here? A little step-by-step would help because I'm a beginner. Thanks! Cindy Link to comment Share on other sites More sharing options...
rich Posted September 18, 2016 Share Posted September 18, 2016 The error is because you're tried to drag the html file into your browser (or open it locally into your browser). You can't do this, because of security restrictions, i.e. it can't load the images from your local drive. Have a look at the Phaser Getting Started tutorial, because it covers this step in detail. Link to comment Share on other sites More sharing options...
Recommended Posts