diff --git a/src/Utils/MessageValidation.test.ts b/src/Utils/MessageValidation.test.ts index bc205241f..b55473fa9 100644 --- a/src/Utils/MessageValidation.test.ts +++ b/src/Utils/MessageValidation.test.ts @@ -16,6 +16,8 @@ test.each` ${"https://main.documentdb.ext.microsoftazure.de"} | ${false} ${"https://random.domain"} | ${true} ${"https://malicious.cloudapp.azure.com"} | ${true} + ${"https://maliciousazure.com"} | ${true} + ${"https://maliciousportalsazure.com"} | ${true} `("returns $expected when called with $domain", ({ domain, expected }) => { expect(isInvalidParentFrameOrigin({ origin: domain } as MessageEvent)).toBe(expected); });