Hey there. I have installed ONLYOFFICE Docs Community using docker and it works fine with the test example. I have also installed Nextcloud server using docker, and it also works just fine. I can open files in Nextcloud using onlyoffice as god intended.
But my problem comes when i try to integrate ONLYOFFICE Docs in angular. When i try to open a file that is located in Nextcloud using the file url, i get a 401 Unauthorized. If i pass an url from a file that is in the test example, the file opens correctly
Is there any way to pass the auth headers for nextcloud in the angular component? Or any other kind of solution
Logs from onlyoffice doc server:
==> /var/log/onlyoffice/documentserver/converter/out.log <==
[2024-06-05T15:45:22.267] [ERROR] [localhost] [Khirz6zTPdfd7] [uid-1716160469172] nodeJS - error downloadFile:url=https://thesanctuary.hopto.org/remote.php/dav/files/admin/New%20document.docx;attempt=1;code:null;connect:null Error: Error response: statusCode:401; headers:{"date":"Wed, 05 Jun 2024 15:45:22 GMT","server":"Apache/2.4.38 (Debian)","cache-control":"no-store, no-cache, must-revalidate","content-security-policy":"default-src 'none';","content-type":"application/xml; charset=utf-8","expires":"Thu, 19 Nov 1981 08:52:00 GMT","pragma":"no-cache","referrer-policy":"no-referrer","strict-transport-security":"max-age=31536000;","www-authenticate":"Basic realm=\"Nextcloud\", charset=\"UTF-8\"","x-content-type-options":"nosniff","x-frame-options":"SAMEORIGIN","x-permitted-cross-domain-policies":"none","x-robots-tag":"noindex, nofollow","x-xss-protection":"1; mode=block","set-cookie":["oc_sessionPassphrase=6bCsok%2FlS%2B%2Fjl0f%2FCK37eGKQJ3GQtKLW2GdLs81rIk8aEpr1tx4NJPeIOKTh%2BskvnTfTdwlUEe6zbvBiRFdWx1G0xzVwPSb8sTx9EHbnpdFxBG4FMCaHX9%2FaiL5pWg%2B9; path=/; secure; HttpOnly; SameSite=Lax","__Host-nc_sameSiteCookielax=true; path=/; httponly;secure; expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=lax","__Host-nc_sameSiteCookiestrict=true; path=/; httponly;secure; expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=strict","ocud4508992w=ac9869604fa10419b44153c286b662e8; path=/; secure; HttpOnly; SameSite=Lax"],"keep-alive":"timeout=5, max=100","connection":"Keep-Alive","transfer-encoding":"chunked"};
at Request.fResponse (/snapshot/server/Common/sources/utils.js)
at Request.emit (node:events:527:28)
at Request.onRequestResponse (/snapshot/server/Common/node_modules/request/request.js:1066:10)
at ClientRequest.emit (node:events:527:28)
at HTTPParser.parserOnIncomingClient (node:_http_client:631:27)
at HTTPParser.parserOnHeadersComplete (node:_http_common:128:17)
at TLSSocket.socketOnData (node:_http_client:494:22)
at TLSSocket.emit (node:events:527:28)
at addChunk (node:internal/streams/readable:315:12)
at readableAddChunk (node:internal/streams/readable:289:9)
at TLSSocket.Readable.push (node:internal/streams/readable:228:10)
at TLSWrap.onStreamRead (node:internal/stream_base_commons:190:23)