generateToken requires req to set cookie

This commit is contained in:
RealBeepMcJeep 2023-08-30 12:10:51 -07:00
parent aa901883d2
commit 8211e67ed7
1 changed files with 1 additions and 1 deletions

View File

@ -365,7 +365,7 @@ if (cliArguments.disableCsrf === false) {
app.get("/csrf-token", (req, res) => {
res.json({
"token": generateToken(res)
"token": generateToken(res, req)
});
});