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

On Thu, May 18, 2017 at 10:48 AM, Tony Hirst <[email protected]> wrote:

> And... the jupyer server is behind an nginx proxy which is providing an
> additional authentication layer....
>
> --tony
>
> On Thursday, 18 May 2017 18:42:58 UTC+1, Tony Hirst wrote:
>>
>> Example error:
>>
>> Blocking Cross Origin API request for /api/contents.  Origin:
>> http://ec2-MYINSTANCE.eu-west-1.compute.amazonaws.com:35180, Host:
>> notebooks
>>
>> On Thursday, 18 May 2017 18:41:28 UTC+1, Tony Hirst wrote:
>>>
>>> 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
>>>
>> --
> 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/15dcd5c0-4398-4442-b7b2-00fdae6292b1%40googlegroups.com
> <https://groups.google.com/d/msgid/jupyter/15dcd5c0-4398-4442-b7b2-00fdae6292b1%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/CAHNn8BWpBYRYBw8nMPmSRbs5sHo_-surG4qon17f7qsJzJ8K4g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to