From 92432ecea9b6bc6fea58cac4d64a4a5f44e5c946 Mon Sep 17 00:00:00 2001 From: Maneesh Tewani Date: Fri, 23 May 2025 11:01:29 -0700 Subject: [PATCH 1/2] Fix issue where we ping an endpoint that hasn't been implemented --- packages/storage/src/service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/storage/src/service.ts b/packages/storage/src/service.ts index 97d1407bb52..a4252c77870 100644 --- a/packages/storage/src/service.ts +++ b/packages/storage/src/service.ts @@ -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; From d15eeea269fc6e29ff5848000264bf92734e7d19 Mon Sep 17 00:00:00 2001 From: Maneesh Tewani Date: Fri, 23 May 2025 11:31:41 -0700 Subject: [PATCH 2/2] Modified readme --- .changeset/many-mails-marry.md | 5 +++++ README.md | 2 ++ 2 files changed, 7 insertions(+) create mode 100644 .changeset/many-mails-marry.md diff --git a/.changeset/many-mails-marry.md b/.changeset/many-mails-marry.md new file mode 100644 index 00000000000..409001defc6 --- /dev/null +++ b/.changeset/many-mails-marry.md @@ -0,0 +1,5 @@ +--- +'@firebase/storage': patch +--- + +Fixed issue where Firebase Studio wasn't populating cookies for Storage users diff --git a/README.md b/README.md index d1947bd7fe6..1db82c79608 100644 --- a/README.md +++ b/README.md @@ -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`