很多人在用 NextCloud 搭配 OnlyOffice 是出现 “已阻止此内容。请与网站所有者联系以解决此问题。”的错误

出现这种情况大部分情况下是因为OnlyOffice做了反代,通过nginx配置了 SSL ,而未在 Docker 中配置 SSL 而引发了跨域错误。
从控制台可以看到是发生了跨域,进而证实了猜想

浏览器控制台查看错误
解决方法:
很神奇,使用onlyoffice官方的 Proxy HTTPS to HTTP nginx 配置文件,就消除了这个错误。
https://helpcenter.onlyoffice.com/installation/docs-community-proxy.aspx
https://github.com/ONLYOFFICE/document-server-proxy/blob/master/nginx/proxy-https-to-http.conf