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