[GH-ISSUE #14599] feat: add toggle for allow-downloads in iframe sandbox #32840

Closed
opened 2026-04-25 06:42:30 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @Barlock42 on GitHub (Jun 2, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/14599

Check Existing Issues

  • I have searched the existing issues and discussions.

Problem Description

Currently, the iframe sandbox attribute used in Open WebUI does not include allow-downloads, which prevents users from downloading files that are generated inside the sandboxed iframe.

In some use cases — for example, generating and downloading data visualizations, documents, or reports — users are unable to download these files due to the missing allow-downloads permission in the sandbox attribute.

Desired Solution you'd like

Users should have the ability to download files generated inside the iframe. According to HTML5 specs, this can be enabled by adding allow-downloads to the sandbox attribute of the iframe.

Add a UI toggle or setting (e.g., in the preferences panel or advanced settings) that allows users to enable or disable the allow-downloads flag in the iframe's sandbox attribute.

Alternatives Considered

No response

Additional Context

MDN Web Docs: iframe sandbox attribute

Originally created by @Barlock42 on GitHub (Jun 2, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/14599 ### Check Existing Issues - [x] I have searched the existing issues and discussions. ### Problem Description Currently, the iframe sandbox attribute used in Open WebUI does not include allow-downloads, which prevents users from downloading files that are generated inside the sandboxed iframe. In some use cases — for example, generating and downloading data visualizations, documents, or reports — users are unable to download these files due to the missing allow-downloads permission in the sandbox attribute. ### Desired Solution you'd like Users should have the ability to download files generated inside the iframe. According to HTML5 specs, this can be enabled by adding allow-downloads to the sandbox attribute of the iframe. Add a UI toggle or setting (e.g., in the preferences panel or advanced settings) that allows users to enable or disable the allow-downloads flag in the iframe's sandbox attribute. ### Alternatives Considered _No response_ ### Additional Context [MDN Web Docs: iframe sandbox attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe#attr-sandbox)
Author
Owner

@tjbck commented on GitHub (Jun 16, 2025):

Addressed with 8e139b04f0

<!-- gh-comment-id:2976458269 --> @tjbck commented on GitHub (Jun 16, 2025): Addressed with 8e139b04f05c9e16ed67bcfc544f4ad227f113c0
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#32840