HEAD requests return 400
This is our storage rules
service firebase.storage {
match /b/{bucket}/o {
match /{allPaths=**} {
allow read;
allow write: if request.auth != null;
}
}
}
GET works, but for some reason, HEAD doesn't.
I found a few problems with this issue:
- I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
- This issue does not seem to follow the issue template. Make sure you provide all the required information.
Hi @mrwnmonm, I tried making a HEAD request using fetch and got 400 error, yet indeed GET works as expected (quickstart). Is it the same use case you're trying on? If it's not, you may share a repro code and detailed steps so I can debug it on my end and ask necessary assistance from the right person. Thanks!
I guess it is the same.
Adding GCS docs stating that the HEAD request should be supported.
@mrwnmonm thanks, the issue label was added to get attention from Storage folks.
Got feedback from the team that this feature isn't yet available on our SDK. We have an existing internal FR (b/27876138) for it though I can't share any timelines or specifics at the moment.
We'll treat this as a feature request as well and keep it open. Thanks for bringing this up, @mrwnmonm!
any update on this?
This is still valid. What's the status on this?
Also checking in. I am dealing with a customer who wishes to do a HEAD request as a preflight-style check of the content size of a firebase storage asset before fully downloading it.