mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[server/csrf] cast isSecure to boolean
This commit is contained in:
parent
50378b70c1
commit
9ec5a2c21f
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@ import { forbidden } from 'boom';
|
|||
export default function (kbnServer, server, config) {
|
||||
const token = config.get('server.xsrfToken');
|
||||
const stateOpts = {
|
||||
isSecure: config.get('server.ssl.cert') && config.get('server.ssl.key'),
|
||||
isSecure: Boolean(config.get('server.ssl.cert') && config.get('server.ssl.key')),
|
||||
isHttpOnly: false,
|
||||
path: '/',
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue