1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-13 14:53:33 +00:00

change default match on basic auth to host (#1397)

This commit is contained in:
Kyle Spearrin
2020-09-21 10:21:09 -04:00
committed by GitHub
parent bf967089d1
commit 5ec2a70027
2 changed files with 4 additions and 2 deletions

2
jslib

Submodule jslib updated: 0a20face13...3bf322a904

View File

@@ -2,6 +2,8 @@ import { CipherService } from 'jslib/abstractions/cipher.service';
import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service'; import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service';
import { VaultTimeoutService } from 'jslib/abstractions/vaultTimeout.service'; import { VaultTimeoutService } from 'jslib/abstractions/vaultTimeout.service';
import { UriMatchType } from 'jslib/enums';
export default class WebRequestBackground { export default class WebRequestBackground {
private pendingAuthRequests: any[] = []; private pendingAuthRequests: any[] = [];
private webRequest: any; private webRequest: any;
@@ -50,7 +52,7 @@ export default class WebRequestBackground {
} }
try { try {
const ciphers = await this.cipherService.getAllDecryptedForUrl(domain); const ciphers = await this.cipherService.getAllDecryptedForUrl(domain, null, UriMatchType.Host);
if (ciphers == null || ciphers.length !== 1) { if (ciphers == null || ciphers.length !== 1) {
error(); error();
return; return;