CORS error on elasticsearch 6.0 running in Docker container

Hi there,

please find below my elasticsearch.yml content.

[root@2c93c5458b9b elasticsearch]# cat config/elasticsearch.yml
cluster.name: "docker-cluster"
network.host: 0.0.0.0

minimum_master_nodes need to be explicitly set when bound on a public IP

set to 1 to allow single node clusters

Details: https://github.com/elastic/elasticsearch/pull/17288

discovery.zen.minimum_master_nodes: 1
xpack.license.self_generated.type: basic
http.cors.enabled : true
http.cors.allow-origin : "*"
http.cors.allow-methods : OPTIONS, HEAD, GET, POST, PUT, DELETE
http.cors.allow-headers : "X-Requested-With,X-Auth-Token,Content-Type, Content-Length, Authorization"
http.cors.allow-credentials: true

Still i am getting the below error when i am trying to apply some filter in the kibana dashboard.

Please let me know if you need any further details and help me resolving the issue.

Error

Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.