mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-11 10:10:25 +01:00
added duofederal.com to valid urls (#11137)
This commit is contained in:
parent
19f4afcd2b
commit
afff91e0f3
@ -52,7 +52,11 @@ window.addEventListener("load", async () => {
|
|||||||
function redirectToDuoFrameless(redirectUrl: string) {
|
function redirectToDuoFrameless(redirectUrl: string) {
|
||||||
const validateUrl = new URL(redirectUrl);
|
const validateUrl = new URL(redirectUrl);
|
||||||
|
|
||||||
if (validateUrl.protocol !== "https:" || !validateUrl.hostname.endsWith("duosecurity.com")) {
|
if (
|
||||||
|
validateUrl.protocol !== "https:" ||
|
||||||
|
!validateUrl.hostname.endsWith("duosecurity.com") ||
|
||||||
|
!validateUrl.hostname.endsWith("duofederal.com")
|
||||||
|
) {
|
||||||
throw new Error("Invalid redirect URL");
|
throw new Error("Invalid redirect URL");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user