nodejs: fix host on verification (9faf628fba)

This commit is contained in:
Sergey Linnik
2025-04-14 15:51:58 +03:00
parent c585e30eb8
commit 71bcc65522
2 changed files with 2 additions and 1 deletions

View File

@ -32,7 +32,7 @@ exports.isValidToken = async (req, res, next) => {
const isValid = wopiValidator.check(
{
url: `${req.protocol}://${req.get('host')}${req.originalUrl || req.url}`,
url: `${req.DocManager.getServerPath()}${req.originalUrl || req.url}`,
accessToken: req.query.access_token,
timestamp: req.headers[reqConsts.requestHeaders.Timestamp.toLowerCase()],
},