Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
fix(web): set frame headers on admin, signup and verify-otp
Richie McIlroy4c4e9d54b8c0
diff --git a/apps/web/__tests__/unit/proxy-frame-headers.test.ts b/apps/web/__tests__/unit/proxy-frame-headers.test.tsindex a7dc56c98..30ac2a61c 100644--- a/apps/web/__tests__/unit/proxy-frame-headers.test.ts+++ b/apps/web/__tests__/unit/proxy-frame-headers.test.ts@@ -50,6 +50,11 @@ describe("proxy frame headers", () => {"/invite/invite-id","/cli/authorize","/mcp/authorize",+ "/admin",+ "/admin/replace-video",+ "/admin/reprocess-video",+ "/signup",+ "/verify-otp",])("sets frame headers on %s", async (path) => {const response = await send(`https://cap.so${path}`);expect(response.status).toBe(200);@@ -66,6 +71,9 @@ describe("proxy frame headers", () => {"/cli/complete","/dashboards","/invited",+ "/administrator",+ "/signups",+ "/verify-otp-help",])("leaves %s without frame headers", async (path) => {const response = await send(`https://cap.so${path}`);expectNoFrameHeaders(response);diff --git a/apps/web/proxy.ts b/apps/web/proxy.tsindex 859667cd9..80acfcc16 100644--- a/apps/web/proxy.ts+++ b/apps/web/proxy.ts@@ -41,6 +41,9 @@ const FRAME_PROTECTED_PATHS = ["/invite","/cli/authorize","/mcp/authorize",+ "/admin",+ "/signup",+ "/verify-otp",];const isFrameProtectedPath = (path: string) =>