mirror of
https://github.com/Expand-sys/ccashfrontend
synced 2025-12-17 07:12:12 +11:00
small patch to use secure cookies only when secure
This commit is contained in:
parent
9e1e078ee8
commit
064a886775
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
|
@ -29,7 +29,7 @@ fastify.register(require("fastify-secure-session"), {
|
|||
cookie: {
|
||||
path: "/",
|
||||
// options for setCookie, see https://github.com/fastify/fastify-cookie
|
||||
secure: true,
|
||||
secure: `${process.env.SECURE}`,
|
||||
httpOnly: true,
|
||||
overwrite: true,
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue