CORS is not enabled for BinderHub API
See original GitHub issueI’d like to use BinderHub’s API to start kernels from another webpage.
When trying to start a notebook server using the BinderHub API, the browser will error because the Access-Control-Allow-Origin HTTP header is missing.
I believe this should be a simple implementation of set_default_headers
in the base.py:BaseHandler
class but I’m still trying to get binderhub set up locally so I can’t test it myself.
In addition, the current release of notebook
(5.1.0) is missing a header that allows starting kernels from another domain. I fixed it in https://github.com/jupyter/notebook/pull/2876 but is there something we can do to get the fix in for the current deployment of Binder?
Happy to talk more about this (in person works too).
Related to #13.
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Enabling CORS — BinderHub documentation - Read the Docs
Cross-Origin Resource Sharing (CORS) is a mechanism that gives a web application running at one origin, access to resources from a different origin....
Read more >Access-Control-Allow-Origin' header is missing on mybinder.org
I'm a novice and I'm stuck. How can the CORS block issue be resolved? betatim ...
Read more >jupyterhub/binder - Gitter
It looks like repo2docker (?) can access the repo via API OK, but when it tries to pull it, it gets an authentication...
Read more >CORS Requirements for "Try It Out" | SwaggerHub ...
CORS is not used when routing requests via SwaggerHub proxy. Enable CORS. CORS is a server configuration. To support CORS on your API...
Read more >3. Set up BinderHub
BinderHub uses Helm Charts to set up the applications we'll use in our Binder deployment. ... Increasing the GitHub API limit is not...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
#182 enables CORS on BinderHub itself, with some questions about how exactly we should be doing it.
Thanks @minrk! On Mon, Oct 16, 2017 at 5:13 AM Min RK notifications@github.com wrote: