Access-Control-Allow-Origin added to firebase.json but missing from the file response header -


below simple firebase.json. if read docs right should tag files 'access-control-allow-origin'. unfortunately none of files being tagged resulting in error:

imported resource origin 'https://gaspush.firebaseapp.com' has been blocked loading cross-origin resource sharing policy: no 'access-control-allow-origin' header present on requested resource.

could take , let me know how allow files endpoints?

{   "firebase": "gaspush",   "headers": [ {     "source" : “**”,     "headers" : [ {       "key" : "access-control-allow-origin",       "value" : "*"     } ]   } ],   "public": ".",   "ignore": [     "firebase.json",     "**/.*",     "**/node_modules/**"   ] } 

this maybe no longer relevant original question, ran similar issue new version of firebase. had accidentally placed "headers" section outside of "hosting" key. below snippet worked me.

{ "hosting": { "public": ".", "headers": [ { "source" : "**", "headers" : [ { "key" : "access-control-allow-origin", "value" : "*" } ] } ] } }


Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -