Downloading error

Hello @belevich00,

Try changing the standard JWT header to something like AuthorizationJWT.

1.Open your container

docker exec -it  <container ID> bash
  1. Open the local.json file with any available text editor.
  • In a Docker container: /etc/onlyoffice/documentserver/local.json.
  1. Find the services.CoAuthoring.token section:
{
  "services": {
    "CoAuthoring": {
      "sql": {
        "type": "postgres",
        "dbHost": "localhost",
        "dbPort": "5432",
        "dbName": "onlyoffice",
        "dbUser": "onlyoffice",
        "dbPass": "onlyoffice"
      },
      "token": {
        "enable": {
          "request": {
            "inbox": true,
            "outbox": true
          },
          "browser": true
        },
        "inbox": {
          "header": "Authorization"
        },
        "outbox": {
          "header": "Authorization"
        }
      },
      "secret": {
        "inbox": {
          "string": "string"
        },
        "outbox": {
          "string": "string"
        },
        "session": {
          "string": "string"
        }
      }
    }
  },
  "rabbitmq": {
    "url": "amqp://guest:guest@localhost"
  },
  "storage": {
    "fs": {
      "secretString": "secret-secret"
    }
  }
}
  1. Replace the header values, inbox, and outbox with “AuthorizationJWT”.

Example After Changes:

{
  "services": {
    "CoAuthoring": {
      "sql": {
        "type": "postgres",
        "dbHost": "localhost",
        "dbPort": "5432",
        "dbName": "onlyoffice",
        "dbUser": "onlyoffice",
        "dbPass": "onlyoffice"
      },
      "token": {
        "enable": {
          "request": {
            "inbox": true,
            "outbox": true
          },
          "browser": true
        },
        "inbox": {
          "header": "AuthorizationJwt"
        },
        "outbox": {
          "header": "AuthorizationJwt"
        }
      },
      "secret": {
        "inbox": {
          "string": "string"
        },
        "outbox": {
          "string": "string"
        },
        "session": {
          "string": "string"
        }
      }
    }
  },
  "rabbitmq": {
    "url": "amqp://guest:guest@localhost"
  },
  "storage": {
    "fs": {
      "secretString": "secret-secret"
    }
  }
}
  1. Restart Document Server services to apply the changes:

in container use command:

supervisorctl restart all