Closed pavanshetty94 closed 8 months ago
Are you a 100% certain you don't have a trailing slash in the supersetDomain
?
It's hard to infer what is actually going on without seeing the error logs.
But I wrote a guide on it, hopefully, it helps someone 😄 Choose your preferred media 😝
https://huamichaelchen.substack.com/p/end-to-end-example-of-setting-up
Hopefully, the answers above are sufficient to close this thread. I'll do so anyway since it's been so long since there was a comment here. If this needs revisiting/reopening, just say the word.
I have a superset application up and running in Ubuntu server.
I have made required configuration in _Supersetconfig.py file for DASHBOARD to embed in My application[Angular page], I have created a user with role : GAMMA, PUBLIC and
Able to get create CRSI and guest token for embedded function,
I'm using CDN [https://unpkg.com/@superset-ui/embedded-sdk] to embed my dashboard.
with `
supersetEmbeddedSdk.embedDashboard({ id: "abc123", // given by the Superset embedding UI supersetDomain: "https://superset.application.com", mountPoint: document.getElementById("my-superset-container"), // any html element that can contain an iframe fetchGuestToken: () => fetchGuestTokenFromBackend(), dashboardUiConfig: { // dashboard UI config: hideTitle, hideTab, hideChartControls, filters.visible, filters.expanded (optional) hideTitle: true, filters: { expanded: true, } }, });
` The script loads the IFRAME to my angular page, and a superset loading screen will be seen for few seconds but it just calls /role API and stops after that..!!
Please can anyone explain what I'm missing.?