Nextcloud v.32 not connectiong to onlyoffice version 9.2.1.8 (AxiosError: Request failed with status code 403)

It’s been three days I cannot get solved the problem with onlyoffice connector to Nextcloud, Googling, reading forums, chat AI did not help either.
The setup is Debian 12 standard apt installed Nextcloud and onlyoffice-documentserver 9.2.1-8.
Nextcloud is on same machine Apache port 80,443, Onlyoffice on Nginx port 8443. Everything worked till onlyoffice update some month ago.

After enabling jwt, this is the error I am getting:

[2025-12-29T22:21:30.016] [ERROR] [localhost] [check_2100824879] [userId] nodeJS - error downloadFile:url=https://my-cloud-server-address/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.ESFOUC4kPUh5QmD93hp38Z1XQXW4K6yizyzX2AIZGmE;attempt=3;code:ERR_BAD_REQUEST;connect:undefined AxiosError: Request failed with status code 403

in config.php i added
‘jwt_secret’ => ‘9ef86b94dxxxxxxxxxxxdd80da5ba65e43’,

and in local.json
“jwt”: {
“enable”: true,
“secret”: “9ef86b94dxxxxxxxxxxxdd80da5ba65e43”,
},

Have experimented with “header”: “AuthorizationJWT”, did not help.
documentserver /healthcheck gives true
no issues with ssl.
tried ‘trusted_proxies’ with ‘127.0.0.1’, did not help

Really desperate. What am I missing here?

Hello @Marines,

Does the setup work if you disable JWT on both sides (Document Server and Nextcloud)?

Have experimented with “header”: “AuthorizationJWT”, did not help.

Describe this in more details. Have you added this header to the Authorization Header field of the connector settings? Also please add the secret key to the Secret key field of the connector instead of the config file.

Thank you for your kind involvement!
If i disable JWT, I get error message: “You are trying to perform an action you do not have rights for. Please contact your Document Server administrator.”

Anyway I did not succeed, wasted 3 days and had to move the DocumentServer to a Docker under another sub-domain, now the connector works.

I suppose have to close the topic as unsolved.