diff --git a/client/src/components/PDF/JourneyBookPDF.tsx b/client/src/components/PDF/JourneyBookPDF.tsx index bdf4133a..97f30388 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 = html card.appendChild(header) diff --git a/client/src/components/PDF/TripPDF.tsx b/client/src/components/PDF/TripPDF.tsx index 1491a4cf..e02939e5 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 = html card.appendChild(header)