Skip to content

Commit d6d7867

Browse files
committed
Used valid path for pingserver
1 parent cc605e7 commit d6d7867

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

packages/functions/src/service.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ export function connectFunctionsEmulator(
185185
}://${host}:${port}`;
186186
// Workaround to get cookies in Firebase Studio
187187
if (useSsl) {
188-
void pingServer(functionsInstance.emulatorOrigin);
188+
void pingServer(functionsInstance.emulatorOrigin + '/backends');
189189
updateEmulatorBanner('Functions', true);
190190
}
191191
}
@@ -439,7 +439,12 @@ async function streamAtURL(
439439
method: 'POST',
440440
body: JSON.stringify(body),
441441
headers,
442-
signal: options?.signal
442+
signal: options?.signal,
443+
credentials:
444+
functionsInstance.emulatorOrigin &&
445+
isCloudWorkstation(functionsInstance.emulatorOrigin)
446+
? 'include'
447+
: undefined
443448
});
444449
} catch (e) {
445450
if (e instanceof Error && e.name === 'AbortError') {

0 commit comments

Comments
 (0)