Skip to content

Commit 0d6ffa6

Browse files
committed
Explain how to disable host check in warning message
1 parent c999355 commit 0d6ffa6

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

notebook/base/handlers.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,8 +436,12 @@ def check_host(self):
436436
allow = addr.is_loopback
437437

438438
if not allow:
439-
self.log.warning("Blocking request with non-local 'Host' %s (%s)",
440-
host, self.request.host)
439+
self.log.warning(
440+
("Blocking request with non-local 'Host' %s (%s). "
441+
"If the notebook should be accessible at that name, "
442+
"set NotebookApp.allow_remote_access to disable the check."),
443+
host, self.request.host
444+
)
441445
return allow
442446

443447
def prepare(self):

0 commit comments

Comments
 (0)