How to access external data from Kibana Plugin?

phpmind-kibana-image

To make AJAX call from Kibana Visualization to external web service.

 $.ajax({
     type: "GET",
     url: 'http://localhost/es',
     headers: {'Content-Type':'application/x-www-form-urlencoded'},
     success: function(my_result) {
          console.log(my_result);
     },
     error: function() {
          alert("error1");
     },
});

There are two separate headers that are necessary here: access-control-allow-origin and access-control-allow-headers. You’re currently setting access-control-allow-origin but I don’t see anywhere you’re setting access-control-allow-headers.




Share

Leave a Reply

Your email address will not be published. Required fields are marked *