diff --git a/core/nano-server/src/nano-server.ts b/core/nano-server/src/nano-server.ts index 309ecc47a..f58c8baab 100644 --- a/core/nano-server/src/nano-server.ts +++ b/core/nano-server/src/nano-server.ts @@ -334,6 +334,11 @@ export class AlwatrConnection { throw new Error('http_header_sent'); } + if (!this._logger.debug && !content.ok && content.meta) { + // clear debug info from client for security reasons. + delete content.meta; + } + let buffer: Buffer; try {