Commit 33037c0
fix(bridge): allow localhost as secure RPC URL for local L2 network
isHTTPS() previously rejected http://localhost URLs as insecure,
causing the "RPC URL is not secure" warning modal on every chain
switch attempt in local development environments.
localhost and 127.0.0.1 are treated as secure contexts by browsers
and MetaMask, so they should not trigger the warning.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent f390241 commit 33037c0
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
19 | 25 | | |
20 | 26 | | |
21 | 27 | | |
| |||
0 commit comments