🪻 distributed transcription service thistle.dunkirk.sh

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

dunkirk.sh 718100b3 00ea745e

verified
Changed files
+4 -4
src
+4 -4
src/index.ts
···
{ user: { id: user.id, email: user.email } },
{
headers: {
-
"Set-Cookie": `session=${sessionId}; HttpOnly; Path=/; Max-Age=${7 * 24 * 60 * 60}; SameSite=Lax`,
+
"Set-Cookie": `session=${sessionId}; HttpOnly; Secure; Path=/; Max-Age=${7 * 24 * 60 * 60}; SameSite=Lax`,
},
},
);
···
{ user: { id: user.id, email: user.email } },
{
headers: {
-
"Set-Cookie": `session=${sessionId}; HttpOnly; Path=/; Max-Age=${7 * 24 * 60 * 60}; SameSite=Lax`,
+
"Set-Cookie": `session=${sessionId}; HttpOnly; Secure; Path=/; Max-Age=${7 * 24 * 60 * 60}; SameSite=Lax`,
},
},
);
···
{
headers: {
"Set-Cookie":
-
"session=; HttpOnly; Path=/; Max-Age=0; SameSite=Lax",
+
"session=; HttpOnly; Secure; Path=/; Max-Age=0; SameSite=Lax",
},
},
);
···
{
headers: {
"Set-Cookie":
-
"session=; HttpOnly; Path=/; Max-Age=0; SameSite=Lax",
+
"session=; HttpOnly; Secure; Path=/; Max-Age=0; SameSite=Lax",
},
},
);