Skip to content

Commit 776a2fd

Browse files
author
renkelvin
committed
Update test_server.ts
1 parent 99c6220 commit 776a2fd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/auth/test/integration/webdriver/util/test_server.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,11 @@ class AuthTestServer {
3939
}
4040

4141
get address(): string {
42-
return `http://127.0.0.1:${PORT_NUMBER}`;
42+
/*
43+
We use "127.0.0.1" rather than "localhost" since emulator uses the former,
44+
and we want to be on the same origin (to access session storage for redirect-based tests).
45+
*/
46+
return `http://127.0.0.1:${PORT_NUMBER}`;
4347
}
4448

4549
async start(): Promise<void> {

0 commit comments

Comments
 (0)