我正在尝试在某个文件上设置 Access-Control-Allow-Origin
为 *
。
这是我的 firebase.json 文件:
{
"database": {
"rules": "database.rules.json"
},
"hosting": {
"public": "public",
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
},
"headers": [ {
"source" : "bundle.js",
"headers" : [ {
"key" : "Access-Control-Allow-Origin",
"value" : "*"
} ]
}]
}
然而它从未被设置:https://curious-athlete-131013.firebaseapp.com/bundle.js