fix(pdf): add allow-scripts to iframe sandbox to suppress CSP warning

This commit is contained in:
jubnl
2026-04-17 20:22:31 +02:00
parent 3b487519a5
commit ae4dfc48cc
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -308,7 +308,7 @@ export async function downloadJourneyBookPDF(journey: JourneyDetail) {
const iframe = document.createElement('iframe') const iframe = document.createElement('iframe')
iframe.style.cssText = 'flex:1;width:100%;border:none;' 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 iframe.srcdoc = html
card.appendChild(header) card.appendChild(header)
+1 -1
View File
@@ -521,7 +521,7 @@ ${daysHtml}
const iframe = document.createElement('iframe') const iframe = document.createElement('iframe')
iframe.style.cssText = 'flex:1;width:100%;border:none;' 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 iframe.srcdoc = html
card.appendChild(header) card.appendChild(header)