I am trying to embed a Kibana Visualization into an external page using angular. I've looked at a number of different threads and none of them seem to answer what I am looking for:
- embedding-kibana-visulaization-using-iframe
- auto-authenticating-to-iframe-embedded-kibana-dashboard
- list-all-kibana-embedded-iframe-urls
- challenges-embedding-kibana-visualizations-in-elasticsearch--site-plugin
- auto-authenticate-kibana-5-0-dashboard-embedded-in-iframe
- embed-kibana-visulaization-url-on-webpage
- embed-kibana-dashboard-or-some-chart-in-external-portal
The angular code I'm using is the following:
<iframe
class="dashboard-iframe"
[src]="(visualizationUrl | safe)"
height="600" width="800"
>
</iframe>
The visualizationUrl is something like:
// Copied from "Emedded iFrame" under "Shared Saved Visualization"
visualizationUrl = `https://my-proxy.sitting.in-front-of.elastic-and-kibana.com/_plugin/kibana/app/kibana#/visualize/my-viz-name?embed=true&_g=some-js-stuff`
When I load this into Chrome I get the following in the console:
Refused to display 'https://my-proxy.sitting.in-front-of.elastic-and-kibana.com/_plugin/kibana/app/kibana#/visualize/my-viz-name?embed=true&_g=some-js-stuff' in a frame because it set 'X-Frame-Options' to 'sameorigin'.
How do I change it so that it allows my domain?