jupyterhub / the-littlest-jupyterhub

Simple JupyterHub distribution for 1-100 users on a single server
https://tljh.jupyter.org
BSD 3-Clause "New" or "Revised" License
1.01k stars 341 forks source link

Hi I'm confronted with the same issue, I've been pulling my hair for 3 days now on how to do this. #952

Closed avinashdv closed 8 months ago

avinashdv commented 8 months ago

Facing the same issue in Kubernetes cluster with minikube. Generating & editing the jupyter_notebook_config.py & jupyterhub_config.py in the pods make no difference. Testing the iframe within a react-app gives the same error Refused to frame 'http://127.0.0.1/' because an ancestor violates the following Content Security Policy directive: "frame-ancestors 'self'".

Please correct me, If I'm wrong. I followed the general steps in setting up the jupyter-hub locally with minikube. It is running fine on http://127.0.0.1/ but when I try to use this link in a react app as an iframe, I got the above stated error. I have generated the jupyter_notebook_config.py & jupyterhub_config.py files in the pod and edited the tornado_settings in both of them as suggested by others to allow all with * This doesn't solve the problem.

welcome[bot] commented 8 months ago

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively. welcome You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! :wave:
Welcome to the Jupyter community! :tada:

consideRatio commented 8 months ago

This is a github repository for a non-k8s single-machine installation of JupyterHub. Maybe you meant to write a response to a discussion elsewhere?

I'll go for a close =/