Skip to content

Commit 3a5b7af

Browse files
committed
Allow dev connections from 127.0.0.* in addition to 'localhost'
1 parent 675f40f commit 3a5b7af

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/constants.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export const ALLOWED_ORIGINS = IS_PROD_BUILD
2020
// above, but it'd require a DNS MitM too (to stop local.httptoolkit.tech
2121
// resolving to localhost and never hitting the network).
2222
/^https?:\/\/localhost(:\d+)?$/,
23+
/^https?:\/\/127.0.0.\d+(:\d+)?$/,
2324
/^http:\/\/local\.httptoolkit\.tech(:\d+)?$/,
2425
/^https:\/\/app\.httptoolkit\.tech$/,
2526
];

0 commit comments

Comments
 (0)