DocServer Example JS

Do you want to: Ask a how-to question
Document Server version: 7.4.1
Type of installation of the Document Server(deb/rp)
OS: Centos
Browser version: Chrome Version 116.0.5845.141

Hi Erveryone,

i do this example from https://github.com/ONLYOFFICE/document-server-integration/tree/master/web/documentserver-example/js but i got this error

image

Can anyone please tell me how to solve that? Thanks

I also have Problem with the DS- Sample when i create for example doc file:

Hello @tiennm,

The js example does not support JWT at the moment, so you need to disable it by changing true to false in the lines below:
/etc/onlyoffice/documentserver/local/json

"enable": {
          "request": {
            "inbox": false,
            "outbox": false
          },
          "browser": false
        },

Run systemctl restart ds-* to apply the changes.

As for the second issue, find the parameter secretString in /etc/onlyoffice/documentserver/local/json and compare its value with the one of set $secure_link_secret in /etc/onlyoffice/documentserver/nginx/ds.conf

If the values are different, change the one in ds.conf and run systemctl restart nginx.