Problem Description
Background:
We are developing a system that requires online document editing capabilities. On the PC side, we have successfully integrated OnlyOffice to enable online document viewing and editing. Users can upload documents through the PC web interface and open and edit them normally in the browser.
Goal:
We now want to extend this functionality to the WeChat mini‑program. Users should be able to open and edit documents previously uploaded on the PC side directly within the mini‑program, enabling a cross‑platform, mobile document processing experience.
Issue:
In the WeChat mini‑program, we attempted to load the PC‑side OnlyOffice online editing page via the component to open documents. However, the page displays an access error and fails to load the document editor properly, preventing users from viewing or editing documents within the mini‑program.
Technical Environment:
PC side: Online document editing service based on OnlyOffice (self‑hosted server or private deployment)
Mini‑program side: Uses the WeChat mini‑program component to embed H5 pages
Document storage: Files uploaded from the PC side are stored on our own server or in cloud storage
Checks already performed:
PC‑side editing works normally, ruling out issues with the OnlyOffice service itself
The document URL can be accessed directly in a browser, ruling out invalid links
Additional question:
Since OnlyOffice officially supports integration through WebView components in mobile applications, is the solution I envision—“mini‑program + web‑view + OnlyOffice H5 page”—actually feasible? (Given that we are still encountering access errors, we would like to confirm whether this approach is technically viable within the WeChat environment.)