importMesh is not working

Hey,
I am trying to import a mesh using skull in the playground, at first i got this (Access to XMLHttpRequest at ‘file:///C:/Users/Osama/Desktop/sample/Skull/skull.babylon’ from origin ‘null’ has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.) abdd then i but the javascript in a separated file and the error gone.
the skull was loaded but there was an error (Failed to load resource:http://localhost/Loading/Skull/2.babylon.manifest?1589035489368 the server responded with a status of 404 (Not Found))then i tried to import another .babylon file and i didnt work, i tried many fixes but it never loads. i had no errors but the mesh didnt load. so i undo the fixes. and tried, there was errors again and the mesh didnt load, so i tried the skull.babylon again and it doesnt load now. ps. the .babylon i tried to import was dummy3.babylon from the playground examples. i copied the code of the importMesh, ps. when i try to use a downloaded sample i get the (Access to XMLHttpRequest at ‘file:///C:/Users/Osama/Desktop/sample/Skull/skull.babylon’ from origin ‘null’ has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.) error.
Thank you

edit:


now it doesnt show any errors but it never loads

The manifest file is not required. Ignore the error in the console.

To load a model you need an Apache server and open with http // localhost.

You can disable console errors for the manifest file:
engine.disableManifestCheck = true;

How are you spinning up your server? Sounds like you have CORS disabled on whatever you are using to run the server. It the same error that would happen if you just double clicked on a .html page instead of having like XAMPP running, or some sort of command line server.

You should not use absolute URL (C://), use relative instead (…/)…

Copy/Paste your scene in the same directory as your HTML, update link in your code to ./skull.babylon, and it should works.

yea that was the case, thank you