Closed mudream4869 closed 3 months ago
Could you please send me the book in question via private email (email address from my profile page). I'd like to reproduce the issue myself
It seems this bug will appear when google drive API is enabled.
An epub3 sample book: Accessible EPUB 3 can reproduce this bug.
I have a hot-fix and it just works for my conditions, but I'm not sure if its logic is ok.
if request.endpoint == "edit-book.show_edit_book":
csp += " *;"
elif request.endpoint == "web.read_book":
csp += " blob:; style-src-elem 'self' blob: 'unsafe-inline';"
elif config.config_use_google_drive:
csp += " *;"
else:
csp += ";"
csp += " object-src 'none';"
Please check the newest nightly version, should work now (hopefully without side effects)
Describe the bug/problem
The image in epub viewer doesn't show due to Content Security Policy.
Relative: https://github.com/janeczku/calibre-web/issues/3060