Repository navigation
issue in superset using iframe #36447
Replies: 1 comment 2 replies
|
To hide the "Exit Full Screen" menu and prevent users from seeing options like SQL Lab in embedded Superset dashboards, use the Embedded SDK with guest tokens and a custom read-only role. This approach gives you fine-grained control over which UI elements are visible and what actions users can take.
embedDashboard({
id: "<dashboard_id>",
supersetDomain: "https://your-superset-domain.com",
mountPoint: document.getElementById("superset-container"),
fetchGuestToken: () => fetch("/api/superset-token").then((res) => res.text()),
dashboardUiConfig: {
hideTitle: true,
hideTab: true,
hideChartControls: true, // Hides the 3-dots menu
filters: { visible: false, expanded: false },
},
});
Superset also recently added logic to hide the fullscreen option in embedded dashboards, so if you use the Embedded SDK or the standalone=1 URL parameter, the fullscreen menu should be hidden automatically in embedded contexts (changelog). If you use only iframe embedding with standalone=1, some menus may still appear, and permissions are not enforced as strictly. The SDK approach is the recommended and secure way to control embedded dashboard UI (details). Avoid using CSS to hide menu items, as this does not remove permissions and may break with future updates (discussion). To reply, just mention @dosu. Docs are dead. Just use Dosu. |
Uh oh!
There was an error while loading. Please reload this page.
how to hide exit full screen menu? in embedded dashboard using iframe we have embedded dashvboard on click of exit full screen sql lab and all options are coming for user which is wrong
All reactions