Not sure if this belongs to nbinteract or binderhub…
I published https://paddy10tellys.github.io/q1/quiz.html which uses an nbinteract dropdown widget. If I go to https://mybinder.org/v2/gh/paddy10tellys/q1/master or use this runnable link https://mybinder.org/v2/gh/paddy10tellys/q1/e950fd8a2f931540780b6329157a0bd40f579bfd every seems ok
https://paddy10tellys.github.io/q1/quiz.html appears but the widgets fail to initialise because github.io has been blocked by the cors policy. it seems that an ‘Access-Control-Allow-Origin’ header is missing on mybinder.org…
This is the full error log:
quiz.html:1 Access to fetch at ‘https://hub.gke.mybinder.org/user/paddy10tellys-quiz-i3ak3pur/api/kernels/61634d06-12ae-47fa-8e66-de06a7f34150?1582052708672’ from origin ‘https://paddy10tellys.github.io’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. If an opaque response serves your needs, set the request’s mode to ‘no-cors’ to fetch the resource with CORS disabled.
hub.gke.mybinder.org/user/paddy10tellys-quiz-i3ak3pur/api/kernels/61634d06-12ae-47fa-8e66-de06a7f34150?1582052708672:1 Failed to load resource: net::ERR_FAILED
NbInteract.js:126 No kernel, stopping the runIfKernelExists() call. Use the run() method to automatically start a kernel if needed.
DevTools failed to parse SourceMap: chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/sourcemaps/contentscript.js.map
DevTools failed to parse SourceMap: chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/sourcemaps/inpage.js.map
DevTools failed to parse SourceMap: https://paddy10tellys.github.io/q1/style.min.css.map "
nb during the binder build I get
ERROR: nbinteract 0.2.4 has requirement nbformat<5,>=4.4.0, but you'll have nbformat 5.0.4 which is incompatible
I’m a novice and I’m stuck. How can the CORS block issue be resolved?