diff --git a/web/documentserver-example/nodejs/helpers/docManager.js b/web/documentserver-example/nodejs/helpers/docManager.js index 0a52e819..56e5a82c 100644 --- a/web/documentserver-example/nodejs/helpers/docManager.js +++ b/web/documentserver-example/nodejs/helpers/docManager.js @@ -189,7 +189,8 @@ DocManager.prototype.getServerPath = function getServerPath() { // get host address from the request DocManager.prototype.getServerHost = function getServerHost() { - return `${this.getProtocol()}://${this.req.headers['x-forwarded-host'] || this.req.headers.host}`; + return `${this.getProtocol()}://${this.req.headers['x-forwarded-host'] || this.req.headers.host}` + + `${this.req.headers['x-forwarded-prefix'] || ''}`; }; // get protocol from the request