mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-22 06:02:06 -05:00
feat: PDFs not rendering inside iframe/object due to sandbox restrictions #6263
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @agoston-huszka-wespeakai on GitHub (Aug 29, 2025).
Check Existing Issues
Problem Description
I’m unable to render PDFs inline within OpenWebUI.
Using
@rgaricano commented on GitHub (Aug 29, 2025):
userSettings/Interface/Artifacts - Check iframe sandbox options
@agoston-huszka-wespeakai commented on GitHub (Aug 29, 2025):
Thanks, I checked the suggested settings and both
iframe Sandbox Allow Same Origin
iframe Sandbox Allow Forms
are set to ON, but the issue remains the same — the PDF is still not rendering inside
@rgaricano commented on GitHub (Aug 29, 2025):
I had some changes on my end regarding iframe rendering, I'll PR them briefly.
Right now, if you want to make it work with a quick fix:
Replace
2407d9b905/src/lib/components/chat/Messages/Markdown/HTMLToken.svelte (L81)by
and rebuild
@tjbck commented on GitHub (Aug 31, 2025):
Intended behaviour due to security issue, we'll explore ways to display pdfs natively.