Mirror of https://github.com/roostorg/coop github.com/roostorg/coop
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Updated cookie with XSS and CSRF best practices (#103)

Co-authored-by: Mac <mac@Macs-MacBook-Pro.local>

authored by

mac-df
Mac
and committed by
GitHub
5d9ce1eb bb4d6ac3

+2
+2
server/api.ts
··· 128 128 store: new sessionStore({ conString: connectionString }), 129 129 cookie: { 130 130 secure: process.env.NODE_ENV === 'production', 131 + httpOnly: true, 132 + sameSite: 'lax', 131 133 // 30 Days in milliseconds 132 134 maxAge: 30 * 24 * 60 * 60 * 1000, 133 135 },