mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-01-10 18:06:27 +02:00
fix: token samesite=secure
This commit is contained in:
parent
409b10b728
commit
c6a982e702
@ -29,9 +29,16 @@ module.exports.get = () => ({
|
||||
httpOnly: true,
|
||||
maxAge: data.expires_in,
|
||||
path: '/',
|
||||
sameSite: 'Lax',
|
||||
sameSite: 'Strict',
|
||||
secure: false,
|
||||
});
|
||||
return res.redirect(303, redirect);
|
||||
res.header('Content-Type', 'text/html');
|
||||
return res.send(`
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head><meta http-equiv="refresh" content="0; url='${redirect}'"></head>
|
||||
<body></body>
|
||||
</html>
|
||||
`);
|
||||
},
|
||||
});
|
||||
|
@ -18,7 +18,7 @@ module.exports.get = fastify => ({
|
||||
domain,
|
||||
httpOnly: true,
|
||||
path: '/',
|
||||
sameSite: 'Lax',
|
||||
sameSite: 'Strict',
|
||||
secure: false,
|
||||
}).send('The token has been revoked.');
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user