From a078832d4b605637e6e44b99ba3f9bb0a1984295 Mon Sep 17 00:00:00 2001 From: regalijan Date: Thu, 19 Oct 2023 16:49:26 -0400 Subject: [PATCH] Use clear-site-data header instead of setting empty cookie --- functions/api/auth/session.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/api/auth/session.ts b/functions/api/auth/session.ts index 06eaf50..66e7019 100644 --- a/functions/api/auth/session.ts +++ b/functions/api/auth/session.ts @@ -35,7 +35,7 @@ export async function onRequestDelete(context: RequestContext) { return new Response(null, { headers: { - "set-cookie": "_s=; Max-Age=0", + "clear-site-data": '"cookies"', }, status: 204, });