Skip to content

Commit

Permalink
adds 'Secure: true' for clay-session cookie (#31)
Browse files Browse the repository at this point in the history
Browsers are throwing warnings that the `clay-session` cookie will be
rejected due to the presence of `SameSite: "None"` without `Secure:
true`. This commit adds the `Secure: true` attribute to the cookie.
  • Loading branch information
mattoberle authored Oct 9, 2020
1 parent 9725b50 commit 283a491
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions services/session-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ function createSessionStore(store = {}) {
name: 'clay-session',
cookie: {
maxAge: 1000 * 60 * 60 * 24 * 7, // 1 week
secure: true
},
store: redisStore,
});
Expand Down

0 comments on commit 283a491

Please sign in to comment.