# \[Cairn\] How to embed dashboard from superset cairn into lms site

**URL:** <https://discuss.openedx.org/t/cairn-how-to-embed-dashboard-from-superset-cairn-into-lms-site/12443>\
**Category:** Site Operations Help\
**Tags:** how-to, tutor, tutor-cairn\
**Created:** [March 5, 2024, 4:57am UTC](https://discuss.openedx.org/t/cairn-how-to-embed-dashboard-from-superset-cairn-into-lms-site/12443 "2024-03-05T04:57:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![devpt](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/devpt/32/6453_2.png) [@devpt](https://discuss.openedx.org/u/devpt)\
**Post date:** [March 5, 2024, 4:57am UTC](https://discuss.openedx.org/t/cairn-how-to-embed-dashboard-from-superset-cairn-into-lms-site/12443/1 "2024-03-05T04:57:36Z")

</div>

I’m trying to embed dashboard from superset cairn into my lms site. I’m doing these step:

- Post API [http://data.local.overhang.io:2247/api/v1/security/guest\_token/](http://data.local.overhang.io:2247/api/v1/security/guest_token/)
- Using superset SDK to embed the dashboard

But I cant call API because of CORS.

How can I embed dashboard. Is there another way?

---

<div class="post-metadata">

**Author:** ![FahadKhalid210](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/fahadkhalid210/32/5854_2.png) [@FahadKhalid210](https://discuss.openedx.org/u/FahadKhalid210)\
**Post date:** [March 5, 2024, 9:33am UTC](https://discuss.openedx.org/t/cairn-how-to-embed-dashboard-from-superset-cairn-into-lms-site/12443/2 "2024-03-05T09:33:19Z")

</div>

@devpt There is an ongoing issue related to [CORS](https://github.com/apache/superset/issues/20425) on the Superset repository. Many users have encountered similar challenges, and the community has provided various solutions and workarounds. I recommend exploring the suggestions outlined in the issue discussion to potentially resolve the **CORS** issue for embedding the dashboard seamlessly into your site.

---

<div class="post-metadata">

**Author:** ![devpt](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/devpt/32/6453_2.png) [@devpt](https://discuss.openedx.org/u/devpt)\
**Post date:** [March 11, 2024, 10:41am UTC](https://discuss.openedx.org/t/cairn-how-to-embed-dashboard-from-superset-cairn-into-lms-site/12443/3 "2024-03-11T10:41:38Z")

</div>

Thank you, but I still very confused.

How can I login to guest account, because superset is configed to login by Oauth2. So I can’t Post the api **“/api/v1/security/login”** to get guest token?

---

<div class="post-metadata">

**Author:** ![abonnell](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/abonnell/32/4618_2.png) [@abonnell](https://discuss.openedx.org/u/abonnell)\
**Post date:** [March 28, 2024, 10:51pm UTC](https://discuss.openedx.org/t/cairn-how-to-embed-dashboard-from-superset-cairn-into-lms-site/12443/4 "2024-03-28T22:51:41Z")

</div>

Hey @devpt , did you end up getting this working?

---

<div class="post-metadata">

**Author:** ![devpt](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/devpt/32/6453_2.png) [@devpt](https://discuss.openedx.org/u/devpt)\
**Post date:** [March 30, 2024, 5:00am UTC](https://discuss.openedx.org/t/cairn-how-to-embed-dashboard-from-superset-cairn-into-lms-site/12443/5 "2024-03-30T05:00:20Z")

</div>

Yes, it’s turned out the work of settings in Superset. I have to give some permission for the role “gamma” go it’s can grant the token and view the dashboard as well. Unluckily, I’m not currently work with Cairn, so I can’t give you the screenshot, but hope it’s help…

**P/S: Most important!!! I have to turn of the SSO, so I can create guest account and login with password.** I think it could be more simple, but I’m not working with Cairn. So, if it’s worked, it’s worked…

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/openedx/original/2X/e/e0015f89e879bc75925b71fd11133ab15fe98297.png) [@system](https://discuss.openedx.org/u/system)\
**Post date:** [June 28, 2024, 5:01am UTC](https://discuss.openedx.org/t/cairn-how-to-embed-dashboard-from-superset-cairn-into-lms-site/12443/6 "2024-06-28T05:01:00Z")

</div>

Closed on June 28, 2024, 5:01am UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
