Skip to content

Commit 8ca70fe

Browse files
Whitelist loopback IP
1 parent 87d4955 commit 8ca70fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jupyter_server_proxy/handlers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def _build_proxy_request(self, host, port, proxied_path, body):
169169

170170
def _check_host_whitelist(self, host):
171171
# TODO Get whitelist from config
172-
whitelist = [r'localhost']
172+
whitelist = [r'localhost', r'127\.0\.0\.1']
173173
return any([bool(re.match(pattern, host)) for pattern in whitelist])
174174

175175
@web.authenticated

0 commit comments

Comments
 (0)