diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-06-04 03:54:18 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-06-04 03:54:18 +0300 |
commit | 9f8e07ff3fc7dc361e8d760f8f4535645ac056e6 (patch) | |
tree | 9328333b940f2f788db090dfd3791bb968aa2852 /api/index.js | |
parent | d26ef04bcccc9917b7524548a27cfa189d65d5d0 (diff) | |
download | arching-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-x | api/index.js | 1 |
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 |