Jump to content

Any idea why I am getting this error?


oliversb
 Share

Recommended Posts

  1. XMLHttpRequest cannot load file:///C:/Users/Oliver/Pictures/project%20powerm/as.pm%20files/HTML%20Build/media/pmSPRITESprite.json. Cross origin requests are only supported for HTTP. phaser.js:43925
    1. Phaser.Loader.fileCompletephaser.js:43925
    2. file.data.onloadphaser.js:43648
Phaser.Loader dataLoadError: pmSPRITESprite phaser.js:44103
  1. Uncaught NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'file:///C:/Users/Oliver/Pictures/project%20powerm/as.pm%20files/HTML%20Build/media/pmSPRITESprite.json'.

I am trying to load a JSON spritesheet and this is the errors that I am getting. Is it a problem grabbing information from the JSON file or is it a syntax error in the JSON file? How can I fix this? Do I need to setup a server or something? Is there a way I can avoid setting up a server.

 

Thanks

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...