beakerx: IPython: Blocking Cross Origin API request
Hi,
I am getting this error when starting IPython.
Running
0: C:\Programs\beaker\python\python
1: C:\Programs\beaker/config/plugins/eval/ipythonPlugins/ipython/ipythonPlugin
2: 8804
Done starting IPython
IPython-stderr>[I 18:47:02.325 NotebookApp] Writing notebook server cookie secret to C:\Users\chehun\.beaker\v1\nginx372547
IPython-stderr>[I 18:47:02.331 NotebookApp] Using MathJax from CDN: https://cdn.mathjax.org/mathjax/latest/MathJax.js
IPython-stderr>[I 18:47:02.361 NotebookApp] Serving notebooks from local directory: C:\Programs\beaker
IPython-stderr>[I 18:47:02.361 NotebookApp] 0 active kernels
IPython-stderr>[I 18:47:02.361 NotebookApp] The IPython Notebook is running at: http://127.0.0.1:8804/
IPython-stderr>[I 18:47:02.361 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip conf
IPython-stderr>[I 18:47:02.622 NotebookApp] 302 POST /login?next=%2F (127.0.0.1) 1.00ms
IPython-stderr>[W 18:47:02.644 NotebookApp] Blocking Cross Origin API request. Origin: http://127.0.0.1:8801, Host: 127.0.
IPython-stderr>[W 18:47:02.651 NotebookApp] 404 POST /api/sessions (127.0.0.1) 8.00ms referer=http://127.0.0.1:8801/beaker/
I am running Windows 7. Is there a config file in beaker where I can set the settings for ipython to allow cross origin?
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 17 (4 by maintainers)
Just for those who googled this: fill into your jupyter_notebook_config.py this line:
or paste your own origin.
(wiki page updated)
(or pass
--NotebookApp.allow_origin='*'as a command-line augment)After trying each extension, the one that failed out jupyter from working was this extension: http://lab.ejci.net/Chrome-Audio-EQ/.
I am getting similar issues:
Using fedora 24, jupyter 4.2.0, and chrome 53.0.2785.143.
@scottdraves - I added this info to troubleshooting section of the wiki: https://github.com/twosigma/beaker-notebook/wiki/Blocking-Cross-Origin-API-request-error
Hope that’s ok.
@thompsonisaacb Thanks for the suggestion. This problem appeared out of nowhere, I removed Chrome EQ and the problem immediately disappeared. Could you explain what you think might have happened? Either way, thanks a million for figuring it out.
And I can confirm it works on firefox. It also works in incognito mode. It must be some extension.