Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Set cookie on redirects if user's old account is banned
  • Loading branch information
regalijan committed Nov 21, 2023
1 parent cecb254 commit 6e57ce6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions functions/api/data-transfers/create.ts
Expand Up @@ -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,
});
Expand Down

0 comments on commit 6e57ce6

Please sign in to comment.