mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-02 18:17:46 +01:00
[PM-3575] Public Suffix List Incorrectly Detected (#6735)
This commit is contained in:
parent
8e047f615e
commit
91fd4f7411
@ -289,7 +289,10 @@ export class Utils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const parseResult = parse(uriString, { validHosts: this.validHosts });
|
const parseResult = parse(uriString, {
|
||||||
|
validHosts: this.validHosts,
|
||||||
|
allowPrivateDomains: true,
|
||||||
|
});
|
||||||
if (parseResult != null && parseResult.hostname != null) {
|
if (parseResult != null && parseResult.hostname != null) {
|
||||||
if (parseResult.hostname === "localhost" || parseResult.isIp) {
|
if (parseResult.hostname === "localhost" || parseResult.isIp) {
|
||||||
return parseResult.hostname;
|
return parseResult.hostname;
|
||||||
|
Loading…
Reference in New Issue
Block a user