nyurik / kibana-vega-vis

This Kibana plugin allows any data visualizations from Elastic Search and other data sources using Vega grammar. You can even create a visualization on top of an interactive map.
Apache License 2.0
134 stars 31 forks source link

Not loading data from URLs without encryption #97

Open alesanco-es opened 5 years ago

alesanco-es commented 5 years ago

First of all, thank you for your great jog with Vega/Kibana integration. Here is my problem: I'm trying to load an external ULR but I'm not able to do so if the external URL is not using TLS. An example (code extract): "data": [ { "name": "farmacias" "url": "https://www.zaragoza.es/sede/servicio/farmacia.json" } ] is loading but "data": [ { "name": "farmacias" "url": "http://www.zaragoza.es/sede/servicio/farmacia.json" } ] is not loading. The JSON file is accesible using a web browser in both ways (site support both http and https. Is this the normal behavior, not allowing URLs without using TLS? Or am I doing something wrong?

Kibana version is 7.1.1

Thanks in advance!!!

octavioranieri commented 4 years ago

Hi @alesanco-es , This is working as designed, not only for Kibana or vega visualization, but for all HTTPS pages. It does not allow you to fetch HTTP content inside a secure page. You may find more details in your browser developer tools.

If you really need to fetch the URL in report time from that http portal, I would recommend you to create a secure proxy (already did that with nginx) which points to your insecure endpoint.