Following the directions here Custom Region Maps in Kibana 6.0 I'm trying to connect a static http server for a custom region boundary geojson file to connect with Kibana.
Using npm http-server at Ubuntu command line in the appropriate sub-directory I am unable to connect from Kibana due to the following CORS error
Cannot download http://localhost:8000/custom_bdys.geojson file. Please ensure the CORS configuration of the server permits requests from the Kibana application on this host.
I have tried running http-server using several different options at the command line without success. Some of the options I've tried include:
A brief update is that I have tested CORS from Kibana to my static http server and that appears to be working, but I still get the CORS error in the region maps
The issue was caused due to security mismatch between using SSL on Kibana host and and serving the custom layer *geojson from a non-encrypted http server. In Chrome there is a tiny little red icon in the top right hand of the url bar
Click this to ignore the security exception
Then if you explore the DevTools Console you can get the root cause of the error
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.