Kibana No 'Access-Control-Allow-Origin' header is present on the requested resource

my code is

$http({
               url:'http://10.153.98.130:8080/elastic-web/elastic/exportExcel.action',
              method: 'POST',
                data: {
                    endTime:"Wed Feb 07 2018 11:33:28 GMT+08:00",
                    index: "whr1*",
                    query: "22312",
                    startTime:"Wed Feb 07 2018 11:18:28 GMT+08:00"
},
               headers: {
                   'Content-Type': 'application/x-www-form-urlencoded'
           }).then(function successCallback(response) {
                   console.log(response)
           }, function errorCallback(response) {
                    console.log(response)
           });

That url doesn't look like Kibana, what server are you trying to connect to? It is the responsibility of that server to send the 'Access-Control-Allow-Origin' header.

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