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.
TypeScript budget-trackercollaborativedockeritinerarymcp-serveroffline-firstopen-sourceopenstreetmappacking-listpwareal-timeself-hostedselfhostedtraveltravel-apptravel-journaltravel-plannertripitwanderlog
fix(pdf): add allow-scripts to iframe sandbox to suppress CSP warning
jubnlae4dfc48ccfc
diff --git a/client/src/components/PDF/JourneyBookPDF.tsx b/client/src/components/PDF/JourneyBookPDF.tsxindex bdf4133a6..97f30388d 100644--- a/client/src/components/PDF/JourneyBookPDF.tsx+++ b/client/src/components/PDF/JourneyBookPDF.tsx@@ -308,7 +308,7 @@ export async function downloadJourneyBookPDF(journey: JourneyDetail) {const iframe = document.createElement('iframe')iframe.style.cssText = 'flex:1;width:100%;border:none;'- iframe.sandbox = 'allow-same-origin allow-modals'+ iframe.sandbox = 'allow-same-origin allow-modals allow-scripts'iframe.srcdoc = htmlcard.appendChild(header)diff --git a/client/src/components/PDF/TripPDF.tsx b/client/src/components/PDF/TripPDF.tsxindex 1491a4cf5..e02939e53 100644--- a/client/src/components/PDF/TripPDF.tsx+++ b/client/src/components/PDF/TripPDF.tsx@@ -521,7 +521,7 @@ ${daysHtml}const iframe = document.createElement('iframe')iframe.style.cssText = 'flex:1;width:100%;border:none;'- iframe.sandbox = 'allow-same-origin allow-modals'+ iframe.sandbox = 'allow-same-origin allow-modals allow-scripts'iframe.srcdoc = htmlcard.appendChild(header)