From 9f8e07ff3fc7dc361e8d760f8f4535645ac056e6 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Tue, 4 Jun 2024 03:54:18 +0300 Subject: XSS something --- api/index.js | 1 + 1 file changed, 1 insertion(+) (limited to 'api/index.js') diff --git a/api/index.js b/api/index.js index 33f3402..cb84d25 100755 --- a/api/index.js +++ b/api/index.js @@ -77,6 +77,7 @@ app.use(session({ function genericaddtest(req,res){ console.table(req.body) var myobj = req.body; + res.set('Content-Type', 'application/json'); res.send(myobj); } // POST data -- cgit v1.2.3