I'm developing an elasticsearch _site plugin that lets me create new indexes and upload content.
I can embed Kibana visualizations in an iFrame to good effect but came across 2 issues:
- Chrome is happy embedding Kibana iFrames that render data but Safari iFrames have dashboards with this error: "Blocked a frame with origin "http://localhost:5601" from accessing a frame with origin "http://localhost:9200". Protocols, domains, and ports must match". So that's a 9200-served page loading a 5601-served iFrame that then fails to call a 9200 REST endpoint.
- If I change the index mapping/content and add a new field "Foo" I need a way to force Kibana to refresh field definitions or I can't embed a visualization for Foo's values. Is there an API I can call to trigger this refresh?