mirror of
https://github.com/Expand-sys/ccashfrontend
synced 2025-12-18 07:32:14 +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: {
|
cookie: {
|
||||||
path: "/",
|
path: "/",
|
||||||
// options for setCookie, see https://github.com/fastify/fastify-cookie
|
// options for setCookie, see https://github.com/fastify/fastify-cookie
|
||||||
secure: true,
|
secure: `${process.env.SECURE}`,
|
||||||
httpOnly: true,
|
httpOnly: true,
|
||||||
overwrite: true,
|
overwrite: true,
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue