From a6761c76ad856774c4bde133063211ac3938f36a Mon Sep 17 00:00:00 2001 From: otdoges Date: Tue, 12 Aug 2025 13:50:02 -0500 Subject: [PATCH] Potential fix for code scanning alert no. 155: Information exposure through a stack trace Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- api-dev-server.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/api-dev-server.ts b/api-dev-server.ts index 4c6dd114..a5bfe2ab 100644 --- a/api-dev-server.ts +++ b/api-dev-server.ts @@ -156,9 +156,7 @@ const server = createServer(async (req: IncomingMessage, res: ServerResponse) => console.error(`Error handling ${endpoint}:`, error); res.writeHead(500); res.end(JSON.stringify({ - error: 'Internal Server Error', - message: error.message, - stack: error.stack + error: 'Internal Server Error' })); } });