If your webapp and the notebook are on different hosts, you will need to
relax the notebook server's cross-origin protections:

Setting the configuration:

    NotebookApp.allow_origin='*'

will allow any website to launch notebooks. Setting the origin to your
other application's domain will allow only your application to access the
notebook server's API.

-Min

On Thu, Sep 8, 2016 at 12:07 PM, vigneshwer dhinakaran <
[email protected]> wrote:

> The embedding with a running notebook server throws a content security
> error, while it works fine with the online nbviewer output of the notebook.
>
> Code implementation : https://github.com/dvigneshwer/Spawning_jupyter_
> notebook_webapp for embedding a notebook in a webapp
>
> I have also mentioned th problems I am facing in this implementation.
>
> Any reviews will be appreciated.
>
> On Tuesday, 6 September 2016 20:29:39 UTC+5:30, vigneshwer dhinakaran
> wrote:
>>
>> Hi,
>>
>> I am facing problems embedding the jupyter notebook in an iframe in a
>> webpage.
>>
>> Followed this official link https://github.com/jupyte
>> r/notebook/blob/master/docs/source/public_server.rst#embed
>> ding-the-notebook-in-another-website
>>
>> Got a refused to display error and there was not custom directory in my
>> ~/.jupyter dir
>>
>> More details :- https://github.com/jupyter/notebook/issues/1256
>>
> --
> 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/35c8c173-1fc7-4442-b74f-80c3b44c2b28%40googlegroups.com
> <https://groups.google.com/d/msgid/jupyter/35c8c173-1fc7-4442-b74f-80c3b44c2b28%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAHNn8BV%3D2R176FvEDMKxJb1Y_3k7cmhMWz45Pv8ggAWqdO3SSQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to