I’m deploying OnlyOffice Document Server with docker.
We run a stack in swarm mode. Everything was fine, until a update in the rules of our enterprise external proxy. Those obliged all requests to be made over https (content security policy). After that, the server started responding with this error:
==> /var/log/onlyoffice/documentserver/nginx.error.log <==
2026/01/21 16:25:36 error 1059#1059: *78 open() "/var/lib/onlyoffice/documentserver/App_Data/cache/files/H9B8MXETXEUCGUH9NMS4/Editor.bin" failed (13: Permission denied), client: 10.0.0.2, server: , request: "GET /cache/files/H9B8MXETXEUCGUH9NMS4/Editor.bin/Editor.bin?md5=ylA2PZhg3vAa39OS4QR26Q&expires=1771607326&filename=Editor.bin HTTP/1.1", host: "onlyoffice_ups", referrer: "https://subdomain.my-site.com/main/docservice/7.0.1-37/web-apps/apps/documenteditor/embed/index.html?_dc=7.0.1-37&lang=pt-BR&customer=ONLYOFFICE&frameEditorId=iframeEditor&compact=true&parentOrigin=https://subdomain.my-site.com"
Content-Security-Policy: Upgrading insecure request ‘http://subdomain.my-site.com/main/docservice/cache/files/H9B8MXETXEUCGUH9NMS4/Editor.bin/Editor.bin?md5=ylA2PZhg3vAa39OS4QR26Q&expires=1771607326&filename=Editor.bin’ to use ‘https’
XHRGET
https://subdomain.my-site.com/main/docservice/cache/files/H9B8MXETXEUCGUH9NMS4/Editor.bin/Editor.bin?md5=ylA2PZhg3vAa39OS4QR26Q&expires=1771607326&filename=Editor.bin
[HTTP/1.1 403 Forbidden 506ms]
GET
https://subdomain.my-site.com/main/docservice/cache/files/H9B8MXETXEUCGUH9NMS4/Editor.bin/Editor.bin?md5=ylA2PZhg3vAa39OS4QR26Q&expires=1771607326&filename=Editor.bin
Status
403
Forbidden
VersionHTTP/1.1
Transferred594 B (146 B size)
Referrer Policystrict-origin-when-cross-origin
DNS ResolutionSystem
Connection
keep-alive
Content-Encoding
gzip
Content-Type
text/html
Date
Wed, 21 Jan 2026 16:25:36 GMT
Set-Cookie
interno_main=rd3999o00000000000000000000ffff0a00aa38o80; path=/; Httponly; Secure
Set-Cookie
TS0160dc65=01648f6ca1729b4323319af637784fa4445d4cdac2201ae3ef02d880f6700a15ece993ceee573201ceea4cb97e66fa0bd7e5739cbf74c162c80dcff268a4c86cc54335cbb6; Path=/; Domain=.subdomain.my-site.com; Secure; HttpOnly
Transfer-Encoding
chunked
Vary
Accept-Encoding
Accept
*/*
Accept-Encoding
gzip, deflate, br, zstd
Accept-Language
en-US,en;q=0.9
Connection
keep-alive
Host
subdomain.my-site.com
Origin
https://subdomain.my-site.com
Referer
https://subdomain.my-site.com/main/docservice/7.0.1-37/web-apps/apps/documenteditor/embed/index.html?_dc=7.0.1-37&lang=pt-BR&customer=ONLYOFFICE&frameEditorId=iframeEditor&compact=true&parentOrigin=https://subdomain.my-site.com
Sec-Fetch-Dest
empty
Sec-Fetch-Mode
cors
Sec-Fetch-Site
same-origin
User-Agent
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:147.0) Gecko/20100101 Firefox/147.0
I tried to update the stack to use HTTPS in OnlyOffice, as explained [here] (Switching ONLYOFFICE Docs to HTTPS protocol), but couldn’t solve the issue. We still face the same erros above, but now we don’t receive the warning that the request is insecure and would be upgraded.