mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[server/xsrf] shorten the xsrf-token, 512 character is overkill
This commit is contained in:
parent
b4517cbe5c
commit
7eefb183e1
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ module.exports = () => Joi.object({
|
||||||
otherwise: Joi.boolean().default(false)
|
otherwise: Joi.boolean().default(false)
|
||||||
}),
|
}),
|
||||||
xsrf: Joi.object({
|
xsrf: Joi.object({
|
||||||
token: Joi.string().default(randomBytes(256).toString('hex')),
|
token: Joi.string().default(randomBytes(32).toString('hex')),
|
||||||
disableProtection: Joi.boolean().default(false),
|
disableProtection: Joi.boolean().default(false),
|
||||||
}).default(),
|
}).default(),
|
||||||
}).default(),
|
}).default(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue