# Embed Jupyterhub in a Desktop app

**URL:** <https://discourse.jupyter.org/t/embed-jupyterhub-in-a-desktop-app/2152>\
**Category:** JupyterHub\
**Tags:** how-to\
**Created:** [September 16, 2019, 2:39pm UTC](https://discourse.jupyter.org/t/embed-jupyterhub-in-a-desktop-app/2152 "2019-09-16T14:39:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sagarshah71193](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/sagarshah71193/32/1213_2.png) [@sagarshah71193](https://discourse.jupyter.org/u/sagarshah71193)\
**Post date:** [September 16, 2019, 2:39pm UTC](https://discourse.jupyter.org/t/embed-jupyterhub-in-a-desktop-app/2152/1 "2019-09-16T14:39:50Z")

</div>

I am new to Jupyterhub and need some help embedding it in a Desktop app. I am using Angular 7 and Electron to create Windows and Mac and apps. I am running Jupyterhub in a server and want to embed it in my app using iframe. however, it throws following error:

Refused to display ‘[https://jupyterhuburlhere/’](https://jupyterhuburlhere/%E2%80%99) in a frame because an ancestor violates the following Content Security Policy directive: “frame-ancestors \*”.

can anyone suggest me with correct settings in Jupyterhub so that it can be embedded using iframe in a Desktop app?

Ps. webview works but I need to use iframe because two way communication is required in my use-case.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Kaivalya\_Pendse](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/kaivalya_pendse/32/8397_2.png) [@Kaivalya\_Pendse](https://discourse.jupyter.org/u/Kaivalya_Pendse)\
**Post date:** [December 29, 2022, 5:28pm UTC](https://discourse.jupyter.org/t/embed-jupyterhub-in-a-desktop-app/2152/2 "2022-12-29T17:28:31Z")

</div>

Hi I am facing same issue with Jupyter Retro lab iframe. Were u able to solve the issue ?
