aboutsummaryrefslogtreecommitdiff
path: root/api/index.js
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-06-04 03:54:18 +0300
committerkaotisk <kaotisk@arching-kaos.org>2024-06-04 03:54:18 +0300
commit9f8e07ff3fc7dc361e8d760f8f4535645ac056e6 (patch)
tree9328333b940f2f788db090dfd3791bb968aa2852 /api/index.js
parentd26ef04bcccc9917b7524548a27cfa189d65d5d0 (diff)
downloadarching-kaos-tools-9f8e07ff3fc7dc361e8d760f8f4535645ac056e6.tar.gz
arching-kaos-tools-9f8e07ff3fc7dc361e8d760f8f4535645ac056e6.tar.bz2
arching-kaos-tools-9f8e07ff3fc7dc361e8d760f8f4535645ac056e6.zip
XSS something
Diffstat (limited to 'api/index.js')
-rwxr-xr-xapi/index.js1
1 files changed, 1 insertions, 0 deletions
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