-
Notifications
You must be signed in to change notification settings - Fork 321
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revert #1915 for security reason #1947
Conversation
So nbgrader should be revamped to avoid using iframes altogether... |
AFAIK only the Revamping the formgrader UI would be the best solution indeed, but it would take some time. |
|
||
Enabling per-user and per-service subdomains with ``JupyterHub.enable_subdomains = True`` | ||
allows to securely use iframes with JupyterHub. | ||
Then, even if embedding in an IFrame is allowed, the host page does not have access to the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This second sentence isn't quite accurate - frame-ancestors: self
allows same-origin iframes which do still have access to the page contents. That's not strictly the problem. The important change is that when enable_subdomains
is True, frame-ancestors self
allows embedding the iframe only on pages served by the user's own server but not on other users' servers, which is the problem case for a single-origin JupyterHub deployment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! One suggestion to improve the accuracy of the docs a bit.
Co-authored-by: Min RK <[email protected]>
Thanks again @minrk for the advisory, the possible solutions and the review. |
This PR reverts #1915 for security reason.
Jupyter application running in JupyterHub must not allow iframes, as described at mitigating-same-origin-deployments.
This PR also updates the demo and documentation to make nbgrader work with
jupyterhub>=4.1
.EDIT: