mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-10-21 13:08:35 +03:00
fix: token samesite=secure
This commit is contained in:
@@ -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.');
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user