From bcf06d6dfa70e2f037554ff66d07d014a9e8c2b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E7=99=BD-=E7=99=BD?= Date: Tue, 22 Apr 2025 21:17:07 +0800 Subject: [PATCH] fix(wopi): "Download As" option not working (#248) https://api.onlyoffice.com/zh-CN/docs/docs-api/using-wopi/host-page/ --- src/component/Viewers/Wopi.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/component/Viewers/Wopi.tsx b/src/component/Viewers/Wopi.tsx index 1ec2fb0..3850af4 100644 --- a/src/component/Viewers/Wopi.tsx +++ b/src/component/Viewers/Wopi.tsx @@ -181,7 +181,7 @@ const Wopi = () => { id={"office_frame"} name={"office_frame"} sandbox={ - "allow-scripts allow-same-origin allow-forms allow-popups allow-top-navigation allow-popups-to-escape-sandbox" + "allow-scripts allow-same-origin allow-forms allow-popups allow-top-navigation allow-popups-to-escape-sandbox allow-downloads allow-modals" } allowFullScreen={true} sx={{