Phaser XMLHttpRequest Fix?

Hello! I am working on a project in the Phaser Javascript library. However, when i attempt to load and add assets on a local file, I receive an error message that says

“Access to XMLHttpRequest at ‘example.png’ from origin ‘null’ has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.”

Here is the code in question :

function preload(){
            this.load.image('alpha-bg-arena','example.png');
         };
...
function create(){
           this.add.image(250,250,'alpha-bg-arena');
            
         }

The files of the code are in the same directory as the asset files. Thanks in advance, i hope :wink: