Explain how to disable host check in warning message

pull/3714/head
Thomas Kluyver 8 years ago
parent c99935556e
commit 0d6ffa6888

@ -436,8 +436,12 @@ class IPythonHandler(AuthenticatedHandler):
allow = addr.is_loopback
if not allow:
self.log.warning("Blocking request with non-local 'Host' %s (%s)",
host, self.request.host)
self.log.warning(
("Blocking request with non-local 'Host' %s (%s). "
"If the notebook should be accessible at that name, "
"set NotebookApp.allow_remote_access to disable the check."),
host, self.request.host
)
return allow
def prepare(self):

Loading…
Cancel
Save