79512524

Date: 2025-03-16 12:03:06
Score: 1
Natty:
Report link
  1. Open Firebase Project > in project overview (project settings) > Service accounts >Manage service account permission.

  2. click on terminal on top right and machine is running.

  3. After that, type these:

    echo '[{ "origin": ["*"], "method": ["GET", "HEAD"], "maxAgeSeconds": 3600, "responseHeader": ["Content-Type", "Access-Control-Allow-Origin"] }]' > cors.json

  4. then write these and replace the address (football-abcd) with your firebase storage bucket.

  5. gsutil cors set cors.json gs://football-abcd.firebasestorage.app

  6. Congratulations.

  7. Setting CORS on gs://football-abcd.firebasestorage.app/...

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: M.Awais