Hello everyone,
I'm currently encountering an issue with Firebase Storage and hoping to get some insights from the community. After uploading files to Firebase Storage, I am trying to access them via an API. However, I consistently receive a "400 Client Error: Bad Request" when I attempt to access the files using their Firebase Storage URLs.
Here's a brief overview of my situation:
Issue: I'm unable to access files stored in Firebase Storage through their URLs. Every time I try, I encounter a "400 Client Error: Bad Request."
Storage Rules: I have set up my Firebase Storage security rules to allow public read access to all files, as shown below:
rules_version = '2';
service firebase.storage {
match /b/{bucket}/o {
// Allow public read access to all files
match /{allPaths=**} {
allow read: if true;
allow write: if request.auth.uid != null;
}
}
}
Despite these rules, which I believe should allow public access to the files, I am unable to access them through the generated URLs. The URLs are correctly formed, and the files exist at the specified paths.
I'm looking for any advice or suggestions on what might be causing this error and how to resolve it. Has anyone else experienced a similar issue, or does anyone have insights into what might be going wrong?
Thank you in advance for your help!