fix: address demo mock review
This commit is contained in:
1 parent
135611bb50
commit
d8eec36d98
13 files changed
+32
-12
No files matched your search
@@ -21,6 +21,8 @@ describe("iframe policy", () => {
|
||||
it("accepts HTTP URLs and same-origin paths", () => {
|
||||
expect(isSupportedProtocol("https://example.com")).toBe(true);
|
||||
expect(isSupportedProtocol("/api/demo-assets/overview")).toBe(true);
|
||||
expect(isSupportedProtocol("//evil.example")).toBe(false);
|
||||
expect(isSupportedProtocol("/\\evil.example")).toBe(false);
|
||||
expect(isSupportedProtocol("javascript:alert(1)")).toBe(false);
|
||||
expect(isSupportedProtocol("not a url")).toBe(false);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user