Android应用程序对声音的访问已被CORS阻止

时间:2019-09-07 07:25:55

标签: android xmlhttprequest access

在我的android应用中,声音不起作用。我遇到错误:

  android_asset/sound/hitsound1.mp3' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, https.", source: file:///android_asset/phaser.min.js (3)
    2019-09-05 13:02:05.430 11067-11067/com.pudzibreak.pudzibreakgame I/chromium: [INFO:CONSOLE(3)] "Phaser.Loader - audio[hitsound1]: error loading asset from URL sound/hitsound1.mp3", source: file:///android_asset/phaser.min.js (3)

我该如何修理?

0 个答案:

没有答案