GitHub user dosubot[bot] added a comment to the discussion: Proper way to embed 
specific dashboard's tab

<!-- Greeting -->
Hi @lrandrianasoloarinavalona! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m 
helping the superset team.

<!-- Answer -->
There isn't currently a built-in way in the Superset SDK to embed a specific 
tab of a dashboard directly. The SDK and embedding features allow you to embed 
entire dashboards or individual charts, but not a single tab within a multi-tab 
dashboard. There are also no documented URL parameters or SDK options to select 
a specific tab on load.

For embedding dashboards across domains, Superset requires careful 
configuration of CORS and Content Security Policy settings. Even with these 
settings, some features (like async queries) may not work unless the embedded 
dashboard and the Superset instance are on the same domain or subdomain due to 
browser security restrictions 
[reference](https://github.com/apache/superset/issues/33561).

If you only want to show the content from a specific tab, a possible workaround 
is to create a separate dashboard containing only the content from that tab and 
embed that dashboard instead. Alternatively, you can embed individual charts 
using the "Embed code" option from the chart sharing menu 
[reference](https://github.com/apache/superset/discussions/33123).

If you need to embed dashboards without requiring user login, you can use the 
Guest Token feature, but this does not change the tab selection behavior 
[reference](https://github.com/apache/superset/discussions/31949).

Let me know if you want more details on any of these workarounds or 
configuration steps.


<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*

---
<sup>How did I do? 
[Good](https://app.dosu.dev/response-feedback/531f0ddd-dbe6-4a3f-959d-caa9d3decbee?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/531f0ddd-dbe6-4a3f-959d-caa9d3decbee?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/531f0ddd-dbe6-4a3f-959d-caa9d3decbee?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/531f0ddd-dbe6-4a3f-959d-caa9d3decbee?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/531f0ddd-dbe6-4a3f-959d-caa9d3decbee?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/531f0ddd-dbe6-4a3f-959d-caa9d3decbee?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/531f0ddd-dbe6-4a3f-959d-caa9d3decbee?feedback_type=other)</sup>&nbsp;&nbsp;[![Join
 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Sh
 are on 
X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/33740)

GitHub link: 
https://github.com/apache/superset/discussions/33740#discussioncomment-13430759

----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: 
notifications-unsubscr...@superset.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org
For additional commands, e-mail: notifications-h...@superset.apache.org

Reply via email to