Hey Timothy,

Both tmpnb _and_ the notebook in the docker container have to change the
origin headers for use by Thebe.

For tmpnb, the option is titled --allow-origin (
https://github.com/jupyter/tmpnb#options)

On Sun, Jul 10, 2016 at 2:13 PM, Timothy Hogan <[email protected]>
wrote:

> I set up tmpnb on Docker as instructed on Github
>
> It can be accessed via the browser, on http://192.168.99.100:8000. This
> works as expected
>
> I am trying to connect a "Python Fiddle" type frontend (OReily THEBE) to
> the tmpnb environment.
>
> I can connect thebe to "tmpnb.org" and to a kernel running on my local
> computer. Both work as expected.
>
> When I change the URL to http://192.168.99.100:8000, the connection is
> not made.
>
> When I check the Web Console I see the following error:
>
> *XMLHttpRequest cannot load http://192.168.99.100:8000/api/spawn/
> <http://192.168.99.100:8000/api/spawn/>. No 'Access-Control-Allow-Origin'
> header is present on the requested resource.*
>
> I have tried starting the notebook, with including the following commands
>
> --NotebookApp.trust_xheaders=True
>
> --NotebookApp.allow_origin=*
>
>
> Yet this does not solve the problem.
>
>
> If I don't use '--NotebookApp.allow_origin=*' on my local computer, when
> I start up the system, I get the same error.
>
>
> I do not see any errors in my docker containers
>
>
> What additional steps do I need to take?
>
> Thank you!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Project Jupyter" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jupyter/374fe7d1-ec41-48af-83ac-26ee18b48f9d%40googlegroups.com
> <https://groups.google.com/d/msgid/jupyter/374fe7d1-ec41-48af-83ac-26ee18b48f9d%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Kyle Kelley (@rgbkrk <https://twitter.com/rgbkrk>; lambdaops.com)

-- 
You received this message because you are subscribed to the Google Groups 
"Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/CA%2BtbMaUPfTttP9j0LLWAy%2BUD49cMCOn_3jbL0s5NSXu_Q3aPfg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to