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

added duofederal.com to valid urls (#11137)

This commit is contained in:
Ike
2024-09-19 11:32:42 -04:00
committed by GitHub
parent 19f4afcd2b
commit afff91e0f3

View File

@@ -52,7 +52,11 @@ window.addEventListener("load", async () => {
function redirectToDuoFrameless(redirectUrl: string) {
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");
}