Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HEAD requests return 400 #2623

Open
marawannwh opened this issue Feb 12, 2020 · 8 comments
Open

HEAD requests return 400 #2623

marawannwh opened this issue Feb 12, 2020 · 8 comments

Comments

@marawannwh
Copy link

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.

@google-oss-bot
Copy link
Contributor

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.

@rommelpe
Copy link

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!

@marawannwh
Copy link
Author

I guess it is the same.

@rommelpe
Copy link

Adding GCS docs stating that the HEAD request should be supported.

@mrwnmonm thanks, the issue label was added to get attention from Storage folks.

@rommelpe
Copy link

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!

@itsmitchyyy
Copy link

any update on this?

@bompi88
Copy link

bompi88 commented Sep 9, 2022

This is still valid. What's the status on this?

@ianmpeerly
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants