mirror of
https://github.com/ONLYOFFICE/document-server-integration.git
synced 2026-04-07 14:06:11 +08:00
nodejs: fix host on verification (9faf628fba)
This commit is contained in:
@ -1,5 +1,6 @@
|
|||||||
# Change Log
|
# Change Log
|
||||||
|
|
||||||
|
- nodejs: fix wopi verification
|
||||||
- nodejs: user role
|
- nodejs: user role
|
||||||
- nodejs: start filling
|
- nodejs: start filling
|
||||||
|
|
||||||
|
|||||||
@ -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()],
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user