Skip to content

Commit

Permalink
fix: securty http only
Browse files Browse the repository at this point in the history
  • Loading branch information
liorzblrn committed Dec 13, 2024
1 parent ceebfc1 commit 8eeff22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/workflows-service/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ const main = async () => {
name: 'session',
keys: [env.SESSION_SECRET],
httpOnly: env.ENVIRONMENT_NAME !== 'local',
secure: true,
secure: env.ENVIRONMENT_NAME !== 'local',
// lax - Cookies are sent with same-site requests and some cross-site GET requests.
sameSite: env.ENVIRONMENT_NAME !== 'local' ? 'strict' : 'lax',
maxAge: 1000 * 60 * env.SESSION_EXPIRATION_IN_MINUTES,
Expand Down

0 comments on commit 8eeff22

Please sign in to comment.