question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CORS is not enabled for BinderHub API

See original GitHub issue

I’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.

screenshot 2017-10-05 19 48 03

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:closed
  • Created 6 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
minrkcommented, Oct 11, 2017

#182 enables CORS on BinderHub itself, with some questions about how exactly we should be doing it.

0reactions
SamLau95commented, Oct 16, 2017

Thanks @minrk! On Mon, Oct 16, 2017 at 5:13 AM Min RK notifications@github.com wrote:

@SamLau95 https://github.com/samlau95 CORS should be deployed to beta.mybinder.org now.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/jupyterhub/binderhub/issues/177#issuecomment-336868194, or mute the thread https://github.com/notifications/unsubscribe-auth/ACWsKAGw06h6Ybwf4lGjNvqvg6eMxJSPks5ss0hagaJpZM4PyFzd .

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found