Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c0d2932

Browse files
committedNov 3, 2023
feat: set cookie SameSite using env variable
1 parent 01aec67 commit c0d2932

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎app.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ app.use(
7070
name: "session",
7171
keys: [process.env.COOKIE_SECRET],
7272
// Cookie Options
73-
maxAge: 48 * 60 * 60 * 1000 //Logged in for 48 hours
73+
maxAge: 48 * 60 * 60 * 1000, //Logged in for 48 hours
74+
sameSite: process.env.COOKIE_SAME_SITE
7475
})
7576
);
7677
app.use(passport.initialize());
@@ -89,7 +90,7 @@ Services.log.info("Hacker router activated");
8990
teamRouter.activate(apiRouter);
9091
Services.log.info("Team router activated");
9192
travelRouter.activate(apiRouter);
92-
Services.log.info("Travel router activated")
93+
Services.log.info("Travel router activated");
9394
sponsorRouter.activate(apiRouter);
9495
Services.log.info("Sponsor router activated");
9596
volunteerRouter.activate(apiRouter);

0 commit comments

Comments
 (0)
Please sign in to comment.