diff --git a/examples/resources/js/treasure-hunt.js b/examples/resources/js/treasure-hunt.js index fca9826..9bf2ab7 100644 --- a/examples/resources/js/treasure-hunt.js +++ b/examples/resources/js/treasure-hunt.js @@ -207,6 +207,7 @@ function initAudio() { source = audioScene.createSource(); audioElement = document.createElement('audio'); audioElement.src = 'resources/cube-sound.wav'; + audioElement.crossOrigin = 'anonymous'; audioElement.load(); audioElement.loop = true; audioElementSource =