diff --git a/src/cacophony.ts b/src/cacophony.ts index fe5d38f..9f57f82 100644 --- a/src/cacophony.ts +++ b/src/cacophony.ts @@ -73,8 +73,8 @@ export class Cacophony { if (type === SoundType.HTML) { const audio = new Audio(); audio.src = url; + audio.crossOrigin = 'anonymous'; audio.preload = "auto" - audio.load(); return new Sound(url, undefined, this.context, this.globalGainNode, SoundType.HTML); } return CacheManager.getAudioBuffer(url, this.context).then(buffer => new Sound(url, buffer, this.context, this.globalGainNode, type));