After updating the ELK from version 7.6.1 to 7.9.2, the kibana does not start, presenting the errors:
kibana: FATAL Error: [config validation of [server].cors]: expected value of type [boolean] but got [Object]
{"type":"log","@timestamp":"2020-11-06T13:21:59Z","tags":["warning","legacy-plugins"],"pid":890,"path":"/usr/share/kibana/src/legacy/core_plugins/console","message":"Skipping non-plugin directory at /usr/share/kibana/src/legacy/core_plugins/console"}
Configuration of the elasticsearch.yml file:
http.port: 9200
http.cors.enabled: true
http.cors.allow-origin: "*"
http.cors.allow-credentials: true
http.cors.allow-methods: OPTIONS,HEAD,GET,POST,PUT,DELETE
http.cors.allow-headers: kbn-version,kbn-xsrf,Origin,X-Requested-With,Content-Type,Accept,Engaged-Auth-Token,Content-Length,Authorization
Kibana.yml configuration:
server.cors: true
server.cors.origin: ["*"]
server.cors.additionalHeaders: ["kbn-version","kbn-xsrf","cookie","Origin","X-Requested-With","Content-Type","Accept","Engaged-Auth-Token","Content-Length","Authorization"]
server.cors.credentials: true
Http_tools.js file configuration:
cors: { additionalHeaders: ['kbn-version','kbn-xsrf','cookie'], origin: ['*'], credentials: true },
Note: I have a dashboard embedded in a web application, in the previous version it worked normally, I'm skipping the kibana login, as it is different from the application login.
Can anyone help me?