Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/TavernAI/TavernAI
Browse files Browse the repository at this point in the history
# Conflicts:
#	server.js
  • Loading branch information
TavernAI committed Feb 15, 2023
2 parents 366f235 + e13c1a3 commit dbcc628
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server.js
Expand Up @@ -70,7 +70,8 @@ const { invalidCsrfTokenError, generateToken, doubleCsrfProtection } = doubleCsr
cookieName: "X-CSRF-Token",
cookieOptions: {
httpOnly: true,
sameSite: "strict"
sameSite: "strict",
secure: false
},
size: 64,
getTokenFromRequest: (req) => req.headers["x-csrf-token"]
Expand Down

0 comments on commit dbcc628

Please sign in to comment.