Hi Jupyter community,
We are trying to integrate the Jupyter Hub into our web application. The integration is based on embedding the Jupyter Hub URL using iframe in the HTML. We are able to embed the login page but not able to go ahead. The error we are getting is: Blocked autofocusing on a <input> element in a cross-origin subframe.
.
The configuration is as followos:
in jupyterhub_config.py:
c.JupyterHub.tornado_settings = {
“headers”: {
“Content-Security-Policy”: “frame-ancestors ‘self’ ip:port”,
“Access-Control-Allow-Origin”: “ip:port”,
}
}
in jupyter_notebook_config.py:
c.NotebookApp.tornado_settings = {
“headers”: {
“Content-Security-Policy”: “frame-ancestors ‘self’ ip:port”,
“Access-Control-Allow-Origin”: “ip:port”,
}
}
we have also tried the variation such as removing self, including * in the above config. But the error persists.
Kindly suggest the solution or provide links for the same.
Thank you