mirror of
https://github.com/Wolvan/poll.horse.git
synced 2024-11-22 04:58:00 +01:00
Disable qs library
Being able to pass JSON objects in a query string is unneeded and possibly insecure, thus should be avoided if possible.
This commit is contained in:
parent
9fa3eabad1
commit
3287260962
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ async function main(): Promise<void> {
|
|||
|
||||
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());
|
||||
|
||||
|
|
Loading…
Reference in a new issue