Cors error when recovering the file

Hello, I just started on three.js and I want to load my 3d file which is found in local “box.glb” but I get a Cors error and I don’t know where it comes from

const renderer = new THREE.WebGLRenderer();
    renderer.setSize( window.innerWidth, window.innerHeight );
    document.body.appendChild( renderer.domElement );

    const camera = new THREE.PerspectiveCamera( 45, window.innerWidth / window.innerHeight, 1, 500 );
    camera.position.set( 0, 0, 100 );
    camera.lookAt( 0, 0, 0 );

    const scene = new THREE.Scene();
    const loader = new GLTFLoader();

    loader.load( './box.glb', function ( gltf ) {

        scene.add( gltf.scene );

    }, undefined, function ( error ) {

        console.error( error );

    } );
    
    renderer.render( scene, camera );

Pls show error and the precise request path it’s caused by though :sweat_smile: