Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

fix: allow PDF iframe embedding in CSP

Maurice1a992b7b4e96
diff --git a/server/src/index.ts b/server/src/index.ts
index 1317fa2af..3e16ee51a 100644
--- a/server/src/index.ts
+++ b/server/src/index.ts
@@ -58,7 +58,8 @@ app.use(helmet({
connectSrc: ["'self'", "ws:", "wss:", "https:", "http:"],
fontSrc: ["'self'", "https://fonts.gstatic.com", "data:"],
objectSrc: ["'self'"],
- frameAncestors: ["'none'"],
+ frameSrc: ["'self'"],
+ frameAncestors: ["'self'"],
}
},
crossOriginEmbedderPolicy: false,