mirror of
https://github.com/ONLYOFFICE/document-server-integration.git
synced 2026-02-10 18:05:10 +08:00
nodejs: fix host on verification (9faf628fba)
This commit is contained in:
@ -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()],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user