Skip to content

Commit c44e3e4

Browse files
committed
fix frame security for staging
1 parent f1e4094 commit c44e3e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/editor/src/config/security.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export function validateHostDomain() {
2626
}
2727

2828
if (ENVIRONMENT === "STAGING") {
29-
return hostname.match(/^typecell-[A-z0-9-]+-typecell.vercel.app$/);
29+
return hostname.match(/^typecell-[A-z0-9-]+-typecell.vercel.app$/) || hostname === "staging.typecell.org";
3030
}
3131
return (
3232
hostname === "notebooks.typecell.org" || hostname === "www.typecell.org"
@@ -50,7 +50,7 @@ export function validateFrameDomain() {
5050
}
5151

5252
if (ENVIRONMENT === "STAGING") {
53-
return hostname.match(/^typecell-[A-z0-9-]+-typecell.vercel.app$/);
53+
return hostname.match(/^typecell-[A-z0-9-]+-typecell.vercel.app$/) || hostname === "staging.typecell.org";
5454
}
5555
return hostname.match(/^.*\.typescriptrepl\.com$/);
5656
}

0 commit comments

Comments
 (0)