Skip to content

Commit

Permalink
fix: set cookies to secure for HTTPS
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaillr committed Oct 19, 2024
1 parent 4531e83 commit a47a071
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ app.use(session({
saveUninitialized: false,
cookie: {
maxAge: 1000 * 60 * 60 * 24, // Expires after 24 hours
secure: false // Secure only works over HTTPS
secure: true // Secure only works over HTTPS
}
}));

Expand Down

0 comments on commit a47a071

Please sign in to comment.