I'm trying to upload a file to Firebase storage using the web API, but the server return this error:
{
"error": {
"code": 400,
"message": "Bad Request. Could not access bucket XXXX.appspot.com"
}
}
I have so far:
- checked the permissions in the Cloud console (see https://stackoverflow.com/a/50298931/990193 )
- checked that the APIs are enabled in the developers console (see the comments in https://stackoverflow.com/a/37334122/990193 )
- configured for CORS (see https://firebase.google.com/docs/storage/web/download-files?authuser=0#cors_configuration )
BTW downloading file works just fine.