Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use clear-site-data header instead of setting empty cookie
  • Loading branch information
regalijan committed Oct 19, 2023
1 parent 9b4a131 commit a078832
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/api/auth/session.ts
Expand Up @@ -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,
});
Expand Down

0 comments on commit a078832

Please sign in to comment.