When I try to import mesh by
BABYLON.SceneLoader.ImportMesh() at localhost using chrome, I get this error
Access to XMLHttpRequest at ‘file:///C:/(my_project_path)/assets/rigged-low-poly-male.glb’ from origin ‘null’ has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.
I think this error is for security purpose and can’t be disabled easily.
So, I want to ask you, How do you usually develop your script? You don’t use localhost and always use remote server? to avoid this cross origin error when importing meshes.
Thank you for reading.