File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -185,7 +185,7 @@ export function connectFunctionsEmulator(
185
185
} ://${ host } :${ port } `;
186
186
// Workaround to get cookies in Firebase Studio
187
187
if ( useSsl ) {
188
- void pingServer ( functionsInstance . emulatorOrigin ) ;
188
+ void pingServer ( functionsInstance . emulatorOrigin + '/backends' ) ;
189
189
updateEmulatorBanner ( 'Functions' , true ) ;
190
190
}
191
191
}
@@ -439,7 +439,12 @@ async function streamAtURL(
439
439
method : 'POST' ,
440
440
body : JSON . stringify ( body ) ,
441
441
headers,
442
- signal : options ?. signal
442
+ signal : options ?. signal ,
443
+ credentials :
444
+ functionsInstance . emulatorOrigin &&
445
+ isCloudWorkstation ( functionsInstance . emulatorOrigin )
446
+ ? 'include'
447
+ : undefined
443
448
} ) ;
444
449
} catch ( e ) {
445
450
if ( e instanceof Error && e . name === 'AbortError' ) {
You can’t perform that action at this time.
0 commit comments