Skip to content
This repository was archived by the owner on Nov 6, 2023. It is now read-only.

Commit 4604bc7

Browse files
authored
Exclude localhost subdomains from EASE redirection (#19125)
1 parent 19d18f4 commit 4604bc7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

chromium/background-scripts/background.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,7 @@ function onBeforeRequest(details) {
374374
(uri.protocol === 'http:' || uri.protocol === 'ftp:') &&
375375
uri.hostname.slice(-6) !== '.onion' &&
376376
uri.hostname !== 'localhost' &&
377+
!uri.endsWith('.localhost') &&
377378
uri.hostname !== '[::1]' &&
378379
!isLocalIp;
379380

0 commit comments

Comments
 (0)