如何在firebase托管中允许访问源?

时间:2017-09-29 11:56:42

标签: cors

我曾在我的域https://vincent04-5fc61.firebaseapp.com/images/1.png

中加载图片文件

我的firebase.json是这样的:

{
  "hosting": {
    "public": ".",
    "headers": [ {
        "source" : "**",
        "headers" : [ {
          "key" : "Access-Control-Allow-Origin",
          "value" : "*"
        } ]
    } ]
  }
}

but still denied

0 个答案:

没有答案