Skip to content

Commit a020787

Browse files
authored
Allow http when using emulator (#8392)
* Allow http when using emulator * add changelog
1 parent 85c42dc commit a020787

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

FirebaseStorage/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 8.4.0
2+
- [fixed] Fixed an issue where Storage could not connect to local emulators using
3+
http (#8389).
4+
15
# 8.3.0
26
- [changed] Removed usage of a deprecated GTMSessionFetcher method (#8294).
37

FirebaseStorage/Sources/FIRStorage.m

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,10 @@ - (void)ensureConfigured {
363363
bucket:_storageBucket
364364
auth:_auth
365365
appCheck:_appCheck];
366-
_fetcherServiceForApp.allowLocalhostRequest = _usesEmulator;
366+
if (_usesEmulator) {
367+
_fetcherServiceForApp.allowLocalhostRequest = YES;
368+
_fetcherServiceForApp.allowedInsecureSchemes = @[ @"http" ];
369+
}
367370
}
368371
}
369372

0 commit comments

Comments
 (0)