我使用html,javascript和Phaser庫進行了遊戲。它在我的本地主機上工作得很好。然而,當我把它上傳到Github上(通過網絡接口),並運行它,它給這個錯誤:Javascript Phaser跨源錯誤
Uncaught SecurityError: Failed to execute 'texImage2D' on 'WebGLRenderingContext': The cross-origin image at http://www.imagesup.net/dt-1514207740759.png may not be loaded.
可能有人請解釋一下我做錯了什麼,以及如何解決它?
謝謝。
這也不會工作,同樣的錯誤 –