Error originates from:
BABYLON.SceneLoader.ImportMesh("frame", "https://docs.microsoft.com/windows/mixed-reality/develop/javascript/tutorials/babylonjs-webxr-piano/files", "pianoFrame.babylon", scene, function (meshes) { const frame = meshes[0]; frame.parent = piano; });
Probably comes from incorrect CORS setup on the file? can someone check?
Thanks
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
ID: 628932ba-be16-dd17-3a44-48ff70c75fd1
Version Independent ID: 96d78eac-3ba8-974e-5031-f38e139f3117
Followed tutorial but am seeing this in the browser:
Access to XMLHttpRequest at 'https://docs.microsoft.com/windows/mixed-reality/develop/javascript/tutorials/babylonjs-webxr-piano/filespianoFrame.babylon' from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. babylon.js:16
Error originates from:
BABYLON.SceneLoader.ImportMesh("frame", "https://docs.microsoft.com/windows/mixed-reality/develop/javascript/tutorials/babylonjs-webxr-piano/files", "pianoFrame.babylon", scene, function (meshes) { const frame = meshes[0]; frame.parent = piano; });
Probably comes from incorrect CORS setup on the file? can someone check?Thanks
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.