Below is my simple firebase.json. If I read the documents correctly, it should mark all the files with "Access-Control-Allow-Origin". Unfortunately, none of the files are marked, which leads to an error:
An imported resource from the source ' https://gaspush.firebaseapp.com ' has been blocked from downloading by the Cross-Origin resource sharing policy: No The header of the Access-Control-Allow-Origin header is present in the requested resource.
Can someone take a look and let me know how to properly resolve all files for all endpoints?
{
"firebase": "gaspush",
"headers": [ {
"source" : "**",
"headers" : [ {
"key" : "Access-Control-Allow-Origin",
"value" : "*"
} ]
} ],
"public": ".",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
]
}
source
share