mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-01-11 02:16:26 +02:00
fix: token samesite=secure
This commit is contained in:
parent
409b10b728
commit
c6a982e702
@ -29,9 +29,16 @@ module.exports.get = () => ({
|
|||||||
httpOnly: true,
|
httpOnly: true,
|
||||||
maxAge: data.expires_in,
|
maxAge: data.expires_in,
|
||||||
path: '/',
|
path: '/',
|
||||||
sameSite: 'Lax',
|
sameSite: 'Strict',
|
||||||
secure: false,
|
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,
|
domain,
|
||||||
httpOnly: true,
|
httpOnly: true,
|
||||||
path: '/',
|
path: '/',
|
||||||
sameSite: 'Lax',
|
sameSite: 'Strict',
|
||||||
secure: false,
|
secure: false,
|
||||||
}).send('The token has been revoked.');
|
}).send('The token has been revoked.');
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user