mirror of
https://github.com/plankanban/planka.git
synced 2025-12-17 09:13:23 +03:00
feat: Additional httpOnly token for enhanced security in browsers
This commit is contained in:
16
server/api/helpers/utils/clear-http-only-token-cookie.js
Normal file
16
server/api/helpers/utils/clear-http-only-token-cookie.js
Normal file
@@ -0,0 +1,16 @@
|
||||
module.exports = {
|
||||
sync: true,
|
||||
|
||||
inputs: {
|
||||
response: {
|
||||
type: 'ref',
|
||||
required: true,
|
||||
},
|
||||
},
|
||||
|
||||
fn(inputs) {
|
||||
inputs.response.clearCookie('httpOnlyToken', {
|
||||
path: sails.config.custom.baseUrlPath,
|
||||
});
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user