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
JupyterHub cross origin requests #4584
Comments
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗 |
In your JupyterHub, did you set the config described in #1087 (comment)? IIRC you would still need to explicitly list the domains you want to allow requests from. You could set that to '*' to allow it from anywhere, but that's not the default. This assumes you are using tokens rather than OAuth for auth. Also, I wrote a blog post many moons ago on how this can work from an installed VSCode (so no CORS issue) - https://blog.jupyter.org/connect-to-a-jupyterhub-from-visual-studio-code-ed7ed3a31bcb. Although I suspect your extension will be far more fully featured!!! |
Oops, yes, sorry I missed that tornado setting.
Yes, saw that some time ago, thanks a lot for that post.
At thsi stage we're focusing on just connecting to JupyterHub (perhaps later we'll add more features) Thanks again, closing as solved. |
Bug description
I'm one of the engineers working on VS Code, we have started working on adding an extension that allows users to connect to JupyterHub from within VS Code (but VS Code running in the browser).
This is the extension https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter-hub
We are running into CORS issues, I have checked this issue #1087 and still unable to get things working.
Any help in this space would be appreciated. thanks
How to reproduce
https://...-8000.app.github.dev/hub/api/users/codespace
Authorization: token <token>
Here's the error we get in the browser
& here preflight response
Expected behaviour
Request should succeed.
Actual behaviour
Fails with a CORS error
Based on the above comment I assumed that making a request with Auth tokens is allows, but that does not seem to be the case. Unless of course i have misunderstood or not setup something correctly.
Your personal set up
Full environment
Configuration
Logs
The text was updated successfully, but these errors were encountered: