Does anyone know how to solve the image not appearing on the page, I use javascript to call the image into the phaser game
preload() {
//example calling image
this.load.image("kanvas", "../assets/kanvas.png");
}
create() {
this.add.image(200, 200, "kanvas");
}
Error in console :
Access to XMLHttpRequest at
file:///F:/Hafid%20Suhanizar/KULIAH/SEMESTER%206/MAGANG/PHASER/assets/kanvas.png'
from origin 'null' has been blocked by CORS policy: Cross origin requests are
only supported for protocol schemes: http, data, chrome, chrome-extension,
chrome-untrusted, https.