epub.js icon indicating copy to clipboard operation
epub.js copied to clipboard

Bocked script execution in 'about:srcdoc' because the document's frame is sandboxed and the 'allow-scripts' permission is not set

Open danyun123 opened this issue 3 years ago • 6 comments

I rendered this ebook in vue3 and reported an error,Ebooks can be rendered on the page

image

Here is my Vue3 code

image

danyun123 avatar Apr 30 '23 13:04 danyun123

hey did you find any solution to this?

ompurwar avatar May 30 '23 14:05 ompurwar

hey did you find any solution to this?

No, I've ignored the question for the moment

danyun123 avatar May 30 '23 14:05 danyun123

把 allowScriptedContent: true 放在 renderTo 的参数里试试
https://github.com/futurepress/epub.js#scripted-content

daGaiGuanYu avatar Jul 24 '23 06:07 daGaiGuanYu

把 allowScriptedContent: true 放在 renderTo 的参数里试试 https://github.com/futurepress/epub.js#scripted-content

感谢!!

danyun123 avatar Jul 24 '23 06:07 danyun123

把 allowScriptedContent: true 放在 renderTo 的参数里试试 https://github.com/futurepress/epub.js#scripted-content

It simply adds allow-scripts to the iframe and works! Thanks for the suggestion.

isener avatar Oct 21 '24 13:10 isener

把参数allowScriptedContent: true放在renderTo尝试https://github.com/futurepress/epub.js#scripted-content

它只需添加allow-scripts到 iframe 即可运行!感谢您的建议。

image I am using version 0.3.90.It doesn't seem to have come true.Can you give me some advice?

Libpzzz avatar Oct 31 '24 06:10 Libpzzz