mirror of
https://github.com/spchcap/speech.capital.git
synced 2026-01-13 16:18:06 +00:00
10 lines
414 B
JavaScript
10 lines
414 B
JavaScript
export async function onRequest() {
|
|
const opts = `Domain=.speech.capital; Path=/; Expires=Thu, 01 Jan 1970 00:00:00 GMT`;
|
|
const headers = new Headers();
|
|
headers.append('Set-Cookie', `auth_user=; ${opts}`);
|
|
headers.append('Set-Cookie', `auth_hash=; ${opts}`);
|
|
headers.append('Set-Cookie', `auth_role=; ${opts}`);
|
|
headers.append('Location', '/');
|
|
return new Response(null, { status: 302, headers });
|
|
}
|