mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-06 18:57:56 +01:00
change default match on basic auth to host (#1397)
This commit is contained in:
parent
bf967089d1
commit
5ec2a70027
2
jslib
2
jslib
@ -1 +1 @@
|
|||||||
Subproject commit 0a20face13a0cf57c25fbd44840378cc0d0afc02
|
Subproject commit 3bf322a904cd7ccb8c7e77edbecf8e152feb7364
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user