function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Suresh Kumar Arjunan1Suresh Kumar Arjunan1 

Integration with Analytics Dashboard using VF and Lightning Out

I use Visual Force lightning out to display an analytics dashboard from another Salesforce Org. There are two Salesforce Orgs (Source Org and Target Org) in this context. 

Source Org:
1) Created analytics dashboard
2) Created lightning component and app to embed analytics dashboard.

Target Org:
1) Created a VF page and used lightning out to pull above created lightning app and component which displays dashboard.
2) Used REST API for authentication, where session Id Source Org has been generated using username and password oAuth route.
3) Defined CORS, Analytics Whitelists, CSPs in source and target orgs respectively.

While opening VF page in target org, page is getting loaded but not the dashboard rather dashboard spinner appears forever. From Developer tools, i get below error:
 
Refused to display  'https://xxxxxxx.salesforce.com/?ec=302&startURL=%2Fanalytics%2Fwave%2FembeddedWave.apexp%3Fmode%3DassetView%26formFactor%3DDESKTOP%26showHeader%3Dfalse%26embeddedInstanceId%3Dewa-5905390847443092%26context%3Daura%26height%3D300px%26sfdcNsOrigin%3Dhttps%253A%252F%252Fxxxxxxx.visual.force.com' in a frame because it set 'X-Frame-Options' to 'deny'.

Note: If i login into source org in the same browser then refreshing target org's visual force page renders the analytics dashboard.
Prathima Maradala 3Prathima Maradala 3
Hi ,
can you  please guide me for embeding analytics dashboard in a lightning app . I tried using wave:update event to call dashboard from lightning component but dashboard is not responding.
Do we need any kind of license?
Thank you!