🪻 distributed transcription service thistle.dunkirk.sh
1
fork

Configure Feed

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

feat: add secure setting to the cookie to only send over https

+4 -4
+4 -4
src/index.ts
··· 112 112 { user: { id: user.id, email: user.email } }, 113 113 { 114 114 headers: { 115 - "Set-Cookie": `session=${sessionId}; HttpOnly; Path=/; Max-Age=${7 * 24 * 60 * 60}; SameSite=Lax`, 115 + "Set-Cookie": `session=${sessionId}; HttpOnly; Secure; Path=/; Max-Age=${7 * 24 * 60 * 60}; SameSite=Lax`, 116 116 }, 117 117 }, 118 118 ); ··· 166 166 { user: { id: user.id, email: user.email } }, 167 167 { 168 168 headers: { 169 - "Set-Cookie": `session=${sessionId}; HttpOnly; Path=/; Max-Age=${7 * 24 * 60 * 60}; SameSite=Lax`, 169 + "Set-Cookie": `session=${sessionId}; HttpOnly; Secure; Path=/; Max-Age=${7 * 24 * 60 * 60}; SameSite=Lax`, 170 170 }, 171 171 }, 172 172 ); ··· 186 186 { 187 187 headers: { 188 188 "Set-Cookie": 189 - "session=; HttpOnly; Path=/; Max-Age=0; SameSite=Lax", 189 + "session=; HttpOnly; Secure; Path=/; Max-Age=0; SameSite=Lax", 190 190 }, 191 191 }, 192 192 ); ··· 273 273 { 274 274 headers: { 275 275 "Set-Cookie": 276 - "session=; HttpOnly; Path=/; Max-Age=0; SameSite=Lax", 276 + "session=; HttpOnly; Secure; Path=/; Max-Age=0; SameSite=Lax", 277 277 }, 278 278 }, 279 279 );