Skip to content

Commit bc67dbd

Browse files
authored
Merge 869a49e into c0617a3
2 parents c0617a3 + 869a49e commit bc67dbd

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

.changeset/many-mails-marry.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@firebase/storage': patch
3+
---
4+
5+
Fixed issue where Firebase Studio wasn't populating cookies for Storage users

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@ and follow the instructions to login.
143143

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

146+
Then, make sure you have anonymous sign-in provider enabled:
147+
146148
#### Authentication Support
147149

148150
Visit the authentication config in your project and enable the `Anonymous`

packages/storage/src/service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ export function connectStorageEmulator(
150150
const useSsl = isCloudWorkstation(host);
151151
// Workaround to get cookies in Firebase Studio
152152
if (useSsl) {
153-
void pingServer(`https://${storage.host}`);
153+
void pingServer(`https://${storage.host}/b`);
154154
updateEmulatorBanner('Storage', true);
155155
}
156156
storage._isUsingEmulator = true;

0 commit comments

Comments
 (0)