We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1901eea commit e33a16fCopy full SHA for e33a16f
notebook/base/handlers.py
@@ -435,7 +435,7 @@ def check_host(self):
435
addr = ipaddress.ip_address(host)
436
except ValueError:
437
# Not an IP address: check against hostnames
438
- allow = host in self.settings.get('local_hostnames', [])
+ allow = host in self.settings.get('local_hostnames', ['localhost'])
439
else:
440
allow = addr.is_loopback
441
0 commit comments