Set cookie on redirects if user's old account is banned
This commit is contained in:
parent
cecb254865
commit
6e57ce6daa
@ -67,6 +67,7 @@ export async function onRequestPost(context: RequestContext) {
|
||||
return new Response(null, {
|
||||
headers: {
|
||||
location: "/data-transfer/destination-account",
|
||||
"set-cookie": `__dtid=${id}; HttpOnly; Max-Age=3600; Path=/; SameSite=Lax; Secure`,
|
||||
},
|
||||
status: 201,
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user