Blocked cross origin API requests

880 views
Skip to first unread message

Tony Hirst

unread,
May 18, 2017, 1:41:28 PM5/18/17
to Project Jupyter

Hi


I'm trying to run an AWS EC2 instance built from a custom AWS AMI containing a freshly built jupyter notebook server, which throws an error:

 

Blocking Cross Origin API request for /api/contents


when I try to create a new notebook.


Is this a setting I need to tweak in the AWS config somewhere (I'm way out of my depth there!) or can it be worked around with a Jupyter config setting?


-thanks

--tony

Tony Hirst

unread,
May 18, 2017, 1:42:58 PM5/18/17
to Project Jupyter
Example error:

Blocking Cross Origin API request for /api/contents.  Origin: http://ec2-MYINSTANCE.eu-west-1.compute.amazonaws.com:35180, Host: notebooks

Tony Hirst

unread,
May 18, 2017, 1:48:00 PM5/18/17
to Project Jupyter
And... the jupyer server is behind an nginx proxy which is providing an additional authentication layer....

--tony

MinRK

unread,
May 27, 2017, 9:00:14 PM5/27/17
to Project Jupyter
Since you are using an nginx proxy, you might need to set additional `X-Forwarded-Host`, etc. headers to identify the proxied request. You could also set the HOST header explicitly to the original HOST header, but X-Forwarded-... headers should be handled correctly by tornado.

-Min

--
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 jupyter+unsubscribe@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/15dcd5c0-4398-4442-b7b2-00fdae6292b1%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages