mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-18 11:55:46 +08:00
Merge pull request #6105 from minrk/default_allow_origin_pat
only set allow_origin_pat if defined
This commit is contained in:
commit
3ff6a8f596
@ -678,7 +678,8 @@ class NotebookApp(BaseIPythonApplication):
|
||||
def init_webapp(self):
|
||||
"""initialize tornado webapp and httpserver"""
|
||||
self.webapp_settings['allow_origin'] = self.allow_origin
|
||||
self.webapp_settings['allow_origin_pat'] = re.compile(self.allow_origin_pat)
|
||||
if self.allow_origin_pat:
|
||||
self.webapp_settings['allow_origin_pat'] = re.compile(self.allow_origin_pat)
|
||||
self.webapp_settings['allow_credentials'] = self.allow_credentials
|
||||
|
||||
self.web_app = NotebookWebApplication(
|
||||
|
Loading…
Reference in New Issue
Block a user