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

@ -1,5 +1,6 @@
# Change Log # Change Log
- nodejs: fix wopi verification
- nodejs: user role - nodejs: user role
- nodejs: start filling - nodejs: start filling

View File

@ -32,7 +32,7 @@ exports.isValidToken = async (req, res, next) => {
const isValid = wopiValidator.check( 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, accessToken: req.query.access_token,
timestamp: req.headers[reqConsts.requestHeaders.Timestamp.toLowerCase()], timestamp: req.headers[reqConsts.requestHeaders.Timestamp.toLowerCase()],
}, },