什么是waveurfer.js中的xhr选项

时间:2019-03-29 10:17:11

标签: javascript xmlhttprequest firebase-hosting wavesurfer.js

如何在Wavesurfer中配置XHR选项 我正在xhr error 从Firebase存储加载mp3时 而且我还使用了免费的.tk firebase托管和自定义域 这是我的firebase.json

{
  "functions": {
    "predeploy": ["npm --prefix \"$RESOURCE_DIR\" run lint"]
  },
  "hosting": {
    "public": "dist",
    "ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
    "rewrites": [
      {
        "source": "**",
        "destination": "/index.html"
      }
    ],
    "headers": [
      {
        "source": "**",
        "headers": [
          {
            "key": "Access-Control-Allow-Origin",
            "value": "*"
          }
        ]
      }
    ],
    "appAssociation": "AUTO"
  }
}

0 个答案:

没有答案