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(){
function create(){

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