Skip to content

Commit 8de6cfb

Browse files
committed
wip
1 parent 617ce53 commit 8de6cfb

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

resources/js/components/assets/Editor/PdfViewer.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@ export default {
1414
},
1515
1616
mounted() {
17-
PDFObject.embed(this.src, "#pdfViewer");
17+
PDFObject.embed(this.src, "#pdfViewer", {
18+
customAttribute: {
19+
key: 'sandbox',
20+
value: 'allow-scripts allow-same-origin',
21+
},
22+
});
1823
},
1924
}
2025
</script>

0 commit comments

Comments
 (0)