From 3287260962b34739f980137bc331f1272019771d Mon Sep 17 00:00:00 2001 From: Wolvan Date: Sat, 1 Jan 2022 13:13:38 +0100 Subject: [PATCH] Disable qs library Being able to pass JSON objects in a query string is unneeded and possibly insecure, thus should be avoided if possible. --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 05ebbb3..ada02b9 100644 --- a/src/main.ts +++ b/src/main.ts @@ -19,7 +19,7 @@ async function main(): Promise { const app = express(); app.use(express.json()); - app.use(express.urlencoded({ extended: true })); + app.use(express.urlencoded({ extended: false })); app.use(compression()); app.use(cookiepaser());