Skip to content

Commit d035ea0

Browse files
committed
Fixed issue where storage wasn't passing cookies when using firebase studio
1 parent b97eab3 commit d035ea0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/storage/src/platform/browser/connection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ abstract class XhrConnection<T extends ConnectionType>
7070
if (this.sent_) {
7171
throw internalError('cannot .send() more than once');
7272
}
73-
if (isCloudWorkstation(url) && isUsingEmulator) {
73+
if (isCloudWorkstation(new URL(url).hostname) && isUsingEmulator) {
7474
this.xhr_.withCredentials = true;
7575
}
7676
this.sent_ = true;

0 commit comments

Comments
 (0)