mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 06:13:38 +00:00
PM-13103 - DuoRedirect - fix redirectToDuoFrameless logic to allow either duosecurity.com or duofederal.com as valid redirect urls. The existing logic failed b/c the construction of the previous check would reject all URLs. (#11363)
This commit is contained in:
@@ -54,8 +54,10 @@ function redirectToDuoFrameless(redirectUrl: string) {
|
|||||||
|
|
||||||
if (
|
if (
|
||||||
validateUrl.protocol !== "https:" ||
|
validateUrl.protocol !== "https:" ||
|
||||||
!validateUrl.hostname.endsWith("duosecurity.com") ||
|
!(
|
||||||
!validateUrl.hostname.endsWith("duofederal.com")
|
validateUrl.hostname.endsWith("duosecurity.com") ||
|
||||||
|
validateUrl.hostname.endsWith("duofederal.com")
|
||||||
|
)
|
||||||
) {
|
) {
|
||||||
throw new Error("Invalid redirect URL");
|
throw new Error("Invalid redirect URL");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user