mirror of
https://github.com/ONLYOFFICE/document-server-integration.git
synced 2026-02-10 18:05:10 +08:00
fix(nodejs): skip wopi verification when proof key is missing in discovery
This commit is contained in:
@ -25,6 +25,10 @@ exports.isValidToken = async (req, res, next) => {
|
||||
try {
|
||||
req.DocManager = new DocManager(req, res);
|
||||
const proofKey = await utils.getProofKey(req.DocManager);
|
||||
if (!proofKey) {
|
||||
next();
|
||||
return;
|
||||
}
|
||||
|
||||
const isValid = wopiValidator.check(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user