Skip to content

Fix issue where we ping an endpoint that hasn't been implemented #9059

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

Merged
merged 3 commits into from
Jun 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/many-mails-marry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@firebase/storage': patch
---

Fixed issue where Firebase Studio wasn't populating cookies for Storage users
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ and follow the instructions to login.

For more information, visit https://firebase.google.com/docs/storage/web/download-files#cors_configuration

Then, make sure you have anonymous sign-in provider enabled:

#### Authentication Support

Visit the authentication config in your project and enable the `Anonymous`
Expand Down
2 changes: 1 addition & 1 deletion packages/storage/src/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export function connectStorageEmulator(
const useSsl = isCloudWorkstation(host);
// Workaround to get cookies in Firebase Studio
if (useSsl) {
void pingServer(`https://${storage.host}`);
void pingServer(`https://${storage.host}/b`);
updateEmulatorBanner('Storage', true);
}
storage._isUsingEmulator = true;
Expand Down
Loading