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(
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' ) {
You can’t perform that action at this time.
0 commit comments