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 PDF export: allow same-origin iframes (X-Frame-Options)

Maurice4d9854062c93
diff --git a/server/src/index.js b/server/src/index.js
index e6ef1b9cc..ba1cd38ef 100644
--- a/server/src/index.js
+++ b/server/src/index.js
@@ -47,7 +47,7 @@ app.use(express.json());
// Security headers
app.use((req, res, next) => {
res.setHeader('X-Content-Type-Options', 'nosniff');
- res.setHeader('X-Frame-Options', 'DENY');
+ res.setHeader('X-Frame-Options', 'SAMEORIGIN');
res.setHeader('X-XSS-Protection', '1; mode=block');
res.setHeader('Referrer-Policy', 'strict-origin-when-cross-origin');
next();