Skip to content

Commit 601497b

Browse files
authored
Allow http schemes when using the auth emulator (#7350)
* Allow http schemes when using the auth emulator. * Update changelog and fix formatting. * Update changelog.
1 parent edb9638 commit 601497b

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

FirebaseAuth/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Unreleased
2+
- [fixed] Auth emulator now works across the local network. (#7350)
3+
14
# 7.4.0
25
- [fixed] Check if the reverse client ID is configured as a custom URL scheme before setting it as the callback scheme. (#7211)
36
- [added] Add ability to sync auth state across devices. (#6924)

FirebaseAuth/Sources/Backend/FIRAuthBackend.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -654,6 +654,7 @@ - (void)asyncPostToURLWithRequestConfiguration:(FIRAuthRequestConfiguration *)re
654654
NSString *emulatorHostAndPort = requestConfiguration.emulatorHostAndPort;
655655
if (emulatorHostAndPort) {
656656
fetcher.allowLocalhostRequest = YES;
657+
fetcher.allowedInsecureSchemes = @[ @"http" ];
657658
}
658659
fetcher.bodyData = body;
659660
[fetcher beginFetchWithCompletionHandler:handler];

0 commit comments

Comments
 (0)