Dashboard iframe CORS issue

Tried to embed iframe from SIREN dashboard into my portal (different domain)

Its says : SecurityError: Permission denied to access property “document” on cross-origin object (localhost:5606/bundles/kibana.bundle.js?v=25825:101)

Version: 10.2.1
Build: 25825

Error: SecurityError: Permission denied to access property “document” on cross-origin object (http://localhost:5606/bundles/kibana.bundle.js?v=25825:101)
window.onerror@http://localhost:5606/bundles/commons.bundle.js?v=25825:136:8556

Hi and thank you for your message.
As reported here the cross frame communication works only with the same domain.

Let us know if you have any other question.
Best,
Nicola

Hi Joseph

From the log you posted, it looks like you are trying to embed a dashboard from investigate instance running on localhost
In the production setup, you will probably be running Investigate behind some kind of a proxy (Apache, Nginx)
then you can configure the proxy to serve it on the same domain OR to serve the Access-Control-Allow-Origin header to allow CORS requests

More about CORS request here https://www.keycdn.com/support/cors

Hope this will help you
Simon